From 97d32901efc2b6cbec3ab41f78fa409d2ce78804 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 14 Mar 2011 11:38:48 +0000 Subject: Some more changes to LineEdit lua methods to make medicine macro (db looked up suggestions to lineedit) work as expected. --- client/widgets/lineedit.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/widgets/lineedit.h') 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 + #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__*/ -- cgit v1.2.3