Remove workaround for Qt version which is no longer supported

This commit is contained in:
Juergen Spitzmueller 2023-03-11 16:43:08 +01:00
parent 31a197d88c
commit 466e6eb613

View File

@ -140,15 +140,9 @@ void FancyLineEdit::checkButtons(const QString &text)
void FancyLineEdit::setClearButton(bool visible) void FancyLineEdit::setClearButton(bool visible)
{ {
// QLineEdit::setClearButtonEnabled() has been implemented in Qt 5.2. // QLineEdit::setClearButtonEnabled() has been implemented in Qt 5.2.
// In earlier Qt versions, we roll our own button // This is now the minimum required version
#if QT_VERSION < 0x050200
setButtonPixmap(FancyLineEdit::Right, getPixmap("images/", "editclear", "svgz,png"));
setButtonVisible(FancyLineEdit::Right, visible);
setAutoHideButton(FancyLineEdit::Right, true);
#else
setClearButtonEnabled(visible); setClearButtonEnabled(visible);
#endif
} }