mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Remove workaround for Qt version which is no longer supported
This commit is contained in:
parent
31a197d88c
commit
466e6eb613
@ -140,15 +140,9 @@ void FancyLineEdit::checkButtons(const QString &text)
|
||||
|
||||
void FancyLineEdit::setClearButton(bool visible)
|
||||
{
|
||||
// QLineEdit::setClearButtonEnabled() has been implemented in Qt 5.2.
|
||||
// In earlier Qt versions, we roll our own button
|
||||
#if QT_VERSION < 0x050200
|
||||
setButtonPixmap(FancyLineEdit::Right, getPixmap("images/", "editclear", "svgz,png"));
|
||||
setButtonVisible(FancyLineEdit::Right, visible);
|
||||
setAutoHideButton(FancyLineEdit::Right, true);
|
||||
#else
|
||||
// QLineEdit::setClearButtonEnabled() has been implemented in Qt 5.2.
|
||||
// This is now the minimum required version
|
||||
setClearButtonEnabled(visible);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user