From 0cf2f90507c147ea6f99c1b1632dcb97ac0ab8ae Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 17 Feb 2015 13:31:23 +0200 Subject: simplewidgets.cpp: QLineEdit::setClearButtonEnabled() is from Qt5.2 This could cause problems if the user tries to compile with Qt versions between 5.0 and 5.2. Reported-by: Michele Fabi Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index d258fe7af..f8f4c2493 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -494,7 +494,7 @@ TagFilter::TagFilter(QWidget *parent) : QWidget(parent) { ui.setupUi(this); ui.label->setText(tr("Tags: ")); -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 ui.filterInternalList->setClearButtonEnabled(true); #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); @@ -521,7 +521,7 @@ BuddyFilter::BuddyFilter(QWidget *parent) : QWidget(parent) ui.setupUi(this); ui.label->setText(tr("Person: ")); ui.label->setToolTip(tr("Searches for buddies and divemasters")); -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 ui.filterInternalList->setClearButtonEnabled(true); #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); @@ -547,7 +547,7 @@ LocationFilter::LocationFilter(QWidget *parent) : QWidget(parent) { ui.setupUi(this); ui.label->setText(tr("Location: ")); -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 ui.filterInternalList->setClearButtonEnabled(true); #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); @@ -573,7 +573,7 @@ SuitFilter::SuitFilter(QWidget *parent) : QWidget(parent) { ui.setupUi(this); ui.label->setText(tr("Suits: ")); -#if QT_VERSION >= 0x050000 +#if QT_VERSION >= 0x050200 ui.filterInternalList->setClearButtonEnabled(true); #endif QSortFilterProxyModel *filter = new QSortFilterProxyModel(); -- cgit v1.2.3-70-g09d2