diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-02-17 13:31:23 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-17 14:08:36 -0800 |
commit | 8053a61442db48f1772834a623c04f109b15320d (patch) | |
tree | b7bb5b0022d92c241026384f4efd44fe8abf0747 /qt-ui | |
parent | 6c0a6af4aa47cfb6a01ecbcef7138400c5ae3ab9 (diff) | |
download | subsurface-8053a61442db48f1772834a623c04f109b15320d.tar.gz |
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 <fabiemme@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/simplewidgets.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index eda567abd..f7944c90c 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -505,7 +505,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(); @@ -532,7 +532,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(); @@ -558,7 +558,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(); @@ -584,7 +584,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(); |