diff options
author | deva <deva> | 2011-03-14 11:38:48 +0000 |
---|---|---|
committer | deva <deva> | 2011-03-14 11:38:48 +0000 |
commit | 97d32901efc2b6cbec3ab41f78fa409d2ce78804 (patch) | |
tree | 9cfae8667285d7a271ad928514b203f299abb2ae /client/widgets/lineedit.h | |
parent | 1ad461c0bb7d687fb604d40456a0aea336c9e6bd (diff) |
Some more changes to LineEdit lua methods to make medicine macro (db looked up suggestions to lineedit) work as expected.
Diffstat (limited to 'client/widgets/lineedit.h')
-rw-r--r-- | client/widgets/lineedit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/widgets/lineedit.h b/client/widgets/lineedit.h index 90fac75..8159aad 100644 --- a/client/widgets/lineedit.h +++ b/client/widgets/lineedit.h @@ -27,6 +27,8 @@ #ifndef __PRACRO_LINEEDIT_H__ #define __PRACRO_LINEEDIT_H__ +#include <QStringList> + #include "widget.h" class QLineEdit; @@ -43,6 +45,11 @@ public: void setWdgValid(bool valid); + void clearSuggestions(); + void addSuggestion(QString suggestion); + bool isSuggested(QString value); + void showSuggestions(); + public slots: void changed(); void user_changed(); @@ -54,6 +61,7 @@ private: bool eventFilter(QObject *, QEvent *event); QLineEdit *lineedit; + QStringList suggestions; }; #endif/*__PRACRO_LINEEDIT_H__*/ |