mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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)
|
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user