forked from osmocom/wireshark
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:
parent
129bc4c8de
commit
2a5618b5d1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue