summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-05-05 13:30:17 +0200
committerUwe Klotz <uklotz@mixxx.org>2020-05-05 14:09:05 +0200
commita62c5e82be15accdc3cb6dd1667526037e458a4e (patch)
tree3bc2708f2c4c7ad04150c8b70379379b039abb72 /src
parent6145bd4f7ecac466af2332029fab1a6d4e971998 (diff)
Rename method
Diffstat (limited to 'src')
-rw-r--r--src/widget/wsearchlineedit.cpp6
-rw-r--r--src/widget/wsearchlineedit.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/src/widget/wsearchlineedit.cpp b/src/widget/wsearchlineedit.cpp
index 808e802954..6990cfef98 100644
--- a/src/widget/wsearchlineedit.cpp
+++ b/src/widget/wsearchlineedit.cpp
@@ -224,7 +224,7 @@ void WSearchLineEdit::resizeEvent(QResizeEvent* e) {
m_clearButton->setIconSize(newSize);
// Note(ronso0): For some reason this ensures the search text
// is being displayed after skin change/reload.
- refreshEditBox();
+ refreshState();
}
int top = rect().top() + m_frameWidth;
if (layoutDirection() == Qt::LeftToRight) {
@@ -400,10 +400,10 @@ void WSearchLineEdit::showSearchText(const QString& text) {
setAttribute(Qt::WA_MacShowFocusRect, false);
}
-void WSearchLineEdit::refreshEditBox() {
+void WSearchLineEdit::refreshState() {
#if ENABLE_TRACE_LOG
kLogger.trace()
- << "refreshEditBox";
+ << "refreshState";
#endif // ENABLE_TRACE_LOG
if (isEnabled()) {
enableSearch(getSearchText());
diff --git a/src/widget/wsearchlineedit.h b/src/widget/wsearchlineedit.h
index d81d1ff04c..2a1bfdfc9a 100644
--- a/src/widget/wsearchlineedit.h
+++ b/src/widget/wsearchlineedit.h
@@ -62,8 +62,9 @@ class WSearchLineEdit : public QLineEdit, public WBaseWidget {
// configuration value changes.
static int s_debouncingTimeoutMillis;
+ void refreshState();
+
void updateEditBox(const QString& text);
- void refreshEditBox();
void showPlaceholder();
bool shouldShowPlaceholder(const QString& text) const;