diff options
| author | Cory Fields <[email protected]> | 2014-05-29 15:30:46 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2014-05-29 15:32:24 -0400 |
| commit | c21c74bec43a693283fecbdfb62fee4523317a81 (patch) | |
| tree | e6bf8fe481b701fc62275b6955be990490a2fc83 /src | |
| parent | Merge pull request #4249 (diff) | |
| download | discoin-c21c74bec43a693283fecbdfb62fee4523317a81.tar.xz discoin-c21c74bec43a693283fecbdfb62fee4523317a81.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/macdockiconhandler.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/macdockiconhandler.mm b/src/qt/macdockiconhandler.mm index 64291c918..74fb64ace 100644 --- a/src/qt/macdockiconhandler.mm +++ b/src/qt/macdockiconhandler.mm @@ -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]; } |