mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
osx: Fix missing dock menu with qt5
Qt5 Removed the qt_mac_set_dock_menu function and left no replacement. It was later re-added and deprecated for backwards-compatibility. Qt5.2 adds the non-deprecated QMenu::setAsDockMenu(). Use that when possible.
This commit is contained in:
parent
05b045b59d
commit
c21c74bec4
@ -62,6 +62,8 @@ MacDockIconHandler::MacDockIconHandler() : QObject()
|
||||
this->setMainWindow(NULL);
|
||||
#if QT_VERSION < 0x050000
|
||||
qt_mac_set_dock_menu(this->m_dockMenu);
|
||||
#elif QT_VERSION >= 0x050200
|
||||
this->m_dockMenu->setAsDockMenu();
|
||||
#endif
|
||||
[pool release];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user