Browse Source

Remove unused LineEdit slot. Fix compiler warning.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 9 years ago
parent
commit
6bf2c5a946
  1. 4
      src/gui/lineedit/src/lineedit.cpp
  2. 2
      src/gui/lineedit/src/lineedit.h

4
src/gui/lineedit/src/lineedit.cpp

@ -64,9 +64,9 @@ void LineEdit::resizeEvent(QResizeEvent *e) @@ -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

2
src/gui/lineedit/src/lineedit.h

@ -24,8 +24,10 @@ public: @@ -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;

Loading…
Cancel
Save