diff options
| author | Jonas Schnelli <[email protected]> | 2013-04-14 22:11:55 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2013-04-15 12:02:01 +0200 |
| commit | 4d17a1b0c29e8fd8510c75db1efb203b9b4f9eb0 (patch) | |
| tree | 927cce25f832d04b6ff229d91c4da5bed63437c9 /src/qt/macdockiconhandler.h | |
| parent | Merge pull request #2527 from patbr0wn/master (diff) | |
| download | discoin-4d17a1b0c29e8fd8510c75db1efb203b9b4f9eb0.tar.xz discoin-4d17a1b0c29e8fd8510c75db1efb203b9b4f9eb0.zip | |
fix: GUI Disappearing #1522 (Mac OSX)
- this solution works stable on mac and ensures that the window get's reopened when the user clicks the dock icon .
- tested on 10.8 with Qt4.8.4 and Qt5.0.1
Signed-off-by: Jonas Schnelli <[email protected]>
Diffstat (limited to 'src/qt/macdockiconhandler.h')
| -rw-r--r-- | src/qt/macdockiconhandler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/macdockiconhandler.h b/src/qt/macdockiconhandler.h index 5018456aa..765b00475 100644 --- a/src/qt/macdockiconhandler.h +++ b/src/qt/macdockiconhandler.h @@ -2,6 +2,7 @@ #define MACDOCKICONHANDLER_H #include <QObject> +#include <QMainWindow> QT_BEGIN_NAMESPACE class QMenu; @@ -26,7 +27,7 @@ public: QMenu *dockMenu(); void setIcon(const QIcon &icon); - + void setMainWindow(QMainWindow *window); static MacDockIconHandler *instance(); void handleDockIconClickEvent(); @@ -40,6 +41,7 @@ private: DockIconClickEventHandler *m_dockIconClickEventHandler; QWidget *m_dummyWidget; QMenu *m_dockMenu; + QMainWindow *mainWindow; }; #endif // MACDOCKICONCLICKHANDLER_H |