mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Remove unused LineEdit slot. Fix compiler warning.
This commit is contained in:
parent
af871ef8af
commit
18a520c9f9
2 changed files with 4 additions and 2 deletions
|
@ -64,9 +64,9 @@ void LineEdit::resizeEvent(QResizeEvent *e)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
||||||
void LineEdit::updateCloseButton(const QString& text)
|
void LineEdit::updateCloseButton(const QString& text)
|
||||||
{
|
{
|
||||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
|
||||||
clearButton->setVisible(!text.isEmpty());
|
clearButton->setVisible(!text.isEmpty());
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -24,8 +24,10 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent *e);
|
void resizeEvent(QResizeEvent *e);
|
||||||
|
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
||||||
private slots:
|
private slots:
|
||||||
void updateCloseButton(const QString &text);
|
void updateCloseButton(const QString &text);
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QToolButton *searchButton;
|
QToolButton *searchButton;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue