summaryrefslogtreecommitdiff
path: root/client/widgets/lineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/lineedit.h')
-rw-r--r--client/widgets/lineedit.h8
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__*/