diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/widget/wsearchlineedit.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/widget/wsearchlineedit.h b/src/widget/wsearchlineedit.h index b809d9baad..f50b62b475 100644 --- a/src/widget/wsearchlineedit.h +++ b/src/widget/wsearchlineedit.h @@ -39,6 +39,8 @@ class WSearchLineEdit : public QLineEdit, public WBaseWidget { void setup(const QDomNode& node, const SkinContext& context); + bool clearBtnHasFocus() const; + protected: void resizeEvent(QResizeEvent*) override; void focusInEvent(QFocusEvent*) override; @@ -50,10 +52,8 @@ class WSearchLineEdit : public QLineEdit, public WBaseWidget { public slots: void restoreSearch(const QString& text); - void enableSearch(const QString& text); void disableSearch(); void slotSetFont(const QFont& font); - bool clearBtnHasFocus() const; void clearSearch(); private slots: @@ -76,6 +76,8 @@ class WSearchLineEdit : public QLineEdit, public WBaseWidget { void showPlaceholder(); bool shouldShowPlaceholder(const QString& text) const; + + void enableSearch(const QString& text); void showSearchText(const QString& text); void updateClearButton(const QString& text); |