Qt 5.2.1 for Mac has QtMacExtras but not QMacNativeToolBar.

Change-Id: I55e68a7fd84d36b50e6084cd82b51df7c91c6476
Reviewed-on: https://code.wireshark.org/review/159
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Tested-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2014-02-10 11:56:53 -08:00 committed by Gerald Combs
parent 129bc4c8de
commit 2a5618b5d1
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@
#include <QToolButton>
#include <QTreeWidget>
#ifdef QT_MACEXTRAS_LIB
#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)
#ifdef QT_MACEXTRAS_LIB
#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