bi change + completer in line edit
[mdictionary] / src / mdictionary / gui / SearchBarWidget.h
index 427eb53..0e84bee 100644 (file)
@@ -60,6 +60,7 @@ Q_SIGNALS:
     void progresSetMin(QVariant);
     void progresSetValue(QVariant);
     void progresSetValue2(QVariant);
+    void setCompleterText(QVariant);
 
     //! Requests to search for a list of words matching a word passed as
     //! a parameter
@@ -148,6 +149,11 @@ private Q_SLOTS:
     //! shows history
     void showHistoryButtonClicked();
 
+    void textChange(QString text);
+
+    void nextCompleter();
+
+    void prevCompleter();
 
 private:
 
@@ -156,10 +162,14 @@ private:
     QDeclarativeView *progressBar;
     QTimer *busyTimer;
     bool progressMax;
+    QDeclarativeContext *ctxt;
+    QStringList* completerModel;
+    QCompleter* lineEditCompleter;
+    QString preferedCompliter;
+    QString actualString;
+    QStringList completerActualList;
 
     QLineEdit* searchWordLineEdit;
-    QCompleter* lineEditCompleter;
-    QStringListModel* completerModel;
     QToolButton* clearSearchWordToolButton;
     QPushButton* searchPushButton;
     QToolButton* historyPrevToolButton;