summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-05-05 08:03:56 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-05-05 08:04:19 +0200
commit441c8e039a89a785f29d8e2dc9d87b03c3830a60 (patch)
tree796c3d195994cb3a9a69f3082d2c6cbc074cd89c /src
parentee57f018c212f936af357f6e7d7f972177cdc2bb (diff)
Turn slots into methods
Diffstat (limited to 'src')
-rw-r--r--src/widget/wsearchlineedit.h6
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);