*/
void search(QString word);
+ //! Start to search for given word after 500 ms
+ /*!
+ Sets word as text in search word line edit, and wait 500 ms to start
+ search. If in meanwhile this slot is called again it will stop previous
+ timers.
+ */
+ void searchDelay(QString word);
+
//! Updates state of history buttons
void updateHistoryButtons(bool prev, bool next, bool list);
private Q_SLOTS:
void clearSearchWordToolButtonClicked();
void searchPushButtonClicked();
+ void delaySearchTimeout();
private:
bool _isSearching;
+ QTimer delayTimer;
+ QString delayString;
+
void initializeUI();
};