diff --git a/src/gui/lineedit/src/lineedit.cpp b/src/gui/lineedit/src/lineedit.cpp index 8de914ab0..78dc6870c 100644 --- a/src/gui/lineedit/src/lineedit.cpp +++ b/src/gui/lineedit/src/lineedit.cpp @@ -64,9 +64,9 @@ void LineEdit::resizeEvent(QResizeEvent *e) #endif } +#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) void LineEdit::updateCloseButton(const QString &text) { -#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) clearButton->setVisible(!text.isEmpty()); -#endif } +#endif diff --git a/src/gui/lineedit/src/lineedit.h b/src/gui/lineedit/src/lineedit.h index 74ee9b423..84e0d5cf4 100644 --- a/src/gui/lineedit/src/lineedit.h +++ b/src/gui/lineedit/src/lineedit.h @@ -24,8 +24,10 @@ public: protected: void resizeEvent(QResizeEvent *e); +#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) private slots: void updateCloseButton(const QString &text); +#endif private: QToolButton *searchButton;