diff options
author | Gerald Combs <gerald@zing.org> | 2014-02-11 11:45:30 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-02-11 19:46:10 +0000 |
commit | 648769497a15ffcb8ad42f19b2429b5764f64c38 (patch) | |
tree | c4bd44360a92de0c664ef1a04ed7f5d9ec54df56 | |
parent | edc06c17e7279bc88e7c8e8fcf94e53bd57c0246 (diff) |
Fix a Qt version comparison.
Change-Id: I7df90d53a2d8f29042994bd0c2bc7bf4450fab10
Reviewed-on: https://code.wireshark.org/review/177
Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r-- | ui/qt/main_window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index 6ad5316673..780e9615f3 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -64,7 +64,7 @@ #include <QToolButton> #include <QTreeWidget> -#if defined(QT_MACEXTRAS_LIB) && QT_VERSION <= QT_VERSION_CHECK(5, 2, 1) +#if defined(QT_MACEXTRAS_LIB) && QT_VERSION < QT_VERSION_CHECK(5, 2, 1) #include <QtMacExtras/QMacNativeToolBar> #endif @@ -160,7 +160,7 @@ MainWindow::MainWindow(QWidget *parent) : #endif #if defined(Q_OS_MAC) -#if defined(QT_MACEXTRAS_LIB) && QT_VERSION <= QT_VERSION_CHECK(5, 2, 1) +#if defined(QT_MACEXTRAS_LIB) && QT_VERSION < QT_VERSION_CHECK(5, 2, 1) QMacNativeToolBar *ntb = QtMacExtras::setNativeToolBar(main_ui_->mainToolBar); ntb->setIconSize(QSize(24, 24)); #endif // QT_MACEXTRAS_LIB |