From: "Lubomir I. Ivanov" <[email protected]>

This could cause problems if the user tries to compile with
Qt versions between 5.0 and 5.2.

Reported-by: Michele Fabi <[email protected]>
Signed-off-by: Lubomir I. Ivanov <[email protected]>
---
 qt-ui/simplewidgets.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index eda567a..f7944c9 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();
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to