X-Git-Url: http://git.maemo.org/git/?p=mdictionary;a=blobdiff_plain;f=src%2Fmdictionary%2Fgui%2FSearchBarWidget.h;fp=src%2Fmdictionary%2Fgui%2FSearchBarWidget.h;h=d19ce214c662b30a9b93b64e0ef0a69a75110119;hp=427eb53f7a465d422c3dd48c93422f52ed272a2e;hb=11ada56e37ed724c4777ad2ac555eabe19c65c12;hpb=ebd4c2c97364e18aae17e790155b8f4060981c37 diff --git a/src/mdictionary/gui/SearchBarWidget.h b/src/mdictionary/gui/SearchBarWidget.h index 427eb53..d19ce21 100644 --- a/src/mdictionary/gui/SearchBarWidget.h +++ b/src/mdictionary/gui/SearchBarWidget.h @@ -60,6 +60,8 @@ Q_SIGNALS: void progresSetMin(QVariant); void progresSetValue(QVariant); void progresSetValue2(QVariant); + void setCompleterText(QVariant); + void focusOff(); //! Requests to search for a list of words matching a word passed as //! a parameter @@ -134,6 +136,8 @@ public Q_SLOTS: void updateHistoryButtons(bool prev, bool next, bool list); void setFocus(); + void nextFocus(); + void checkFocus(); private Q_SLOTS: //! Clears search word line edit @@ -148,6 +152,12 @@ private Q_SLOTS: //! shows history void showHistoryButtonClicked(); + void textChange(QString text); + + void nextCompleter(); + + void prevCompleter(); + private: @@ -156,10 +166,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;