summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-05-06 16:52:32 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-05-06 16:52:32 +0200
commit8af204eeaadef8659100d3651b4306b6814fc6fe (patch)
treeb257d7afb1c68aff9e8965940f44583b455b8a34 /src
parent62d114f67f96f027a74f40786a02ba46029ee9ea (diff)
widget/wsearchlineedit: Work around object name qsscheck fail
The simple parser of qsscheck is not smart enough to deal with global constants. Since this should not make any significant performance difference and the constant is only used once, it makes sense to move the string back into function parentheses to work around this issue.
Diffstat (limited to 'src')
-rw-r--r--src/widget/wsearchlineedit.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/widget/wsearchlineedit.cpp b/src/widget/wsearchlineedit.cpp
index a01e0cfbe3..90aba59e99 100644
--- a/src/widget/wsearchlineedit.cpp
+++ b/src/widget/wsearchlineedit.cpp
@@ -23,8 +23,6 @@ const QString kEmptySearch = QStringLiteral("");
const QString kDisabledText = QStringLiteral("- - -");
-const QString kClearButtonName = QStringLiteral("SearchClearButton");
-
inline QString clearButtonStyleSheet(int pxPaddingRight) {
DEBUG_ASSERT(pxPaddingRight >= 0);
return QString(
@@ -74,7 +72,7 @@ WSearchLineEdit::WSearchLineEdit(QWidget* pParent)
setPlaceholderText(tr("Search..."));
m_clearButton->setCursor(Qt::ArrowCursor);
- m_clearButton->setObjectName(kClearButtonName);
+ m_clearButton->setObjectName(QStringLiteral("SearchClearButton"));
// Assume the qss border is at least 1px wide
m_frameWidth = 1;
m_clearButton->hide();