@ -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)
{
clearButton->setVisible(!text.isEmpty());
@ -24,8 +24,10 @@ public:
protected:
void resizeEvent(QResizeEvent *e);
private slots:
void updateCloseButton(const QString &text);
private:
QToolButton *searchButton;