From 6bf2c5a946a87045fd53734ea0bfc622f1738da1 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Mon, 30 Nov 2015 19:58:19 +0300 Subject: [PATCH] Remove unused LineEdit slot. Fix compiler warning. --- src/gui/lineedit/src/lineedit.cpp | 4 ++-- src/gui/lineedit/src/lineedit.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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;