mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 23:45:49 -04:00
Added a dock menu for macOS
This commit is contained in:
parent
6f982a20ba
commit
419d3895be
2 changed files with 58 additions and 0 deletions
|
@ -308,6 +308,10 @@ private:
|
|||
void initStackedPage();
|
||||
void addPage(MainPage *page, QActionGroup *grp, QList<QPair<MainPage *, QPair<QAction *, QListWidgetItem *> > > *notify);
|
||||
void createTrayIcon();
|
||||
#if defined(Q_OS_DARWIN)
|
||||
/** Creates a default menubar on Mac */
|
||||
void createMenuBar();
|
||||
#endif
|
||||
void createNotifyIcons();
|
||||
static MainWindow *_instance;
|
||||
|
||||
|
@ -324,6 +328,13 @@ private:
|
|||
|
||||
QString nameAndLocation;
|
||||
|
||||
#if defined(Q_OS_DARWIN)
|
||||
/** The menubar (Mac OS X only). */
|
||||
QMenuBar *menuBar;
|
||||
QMenu *dockMenu;
|
||||
QAction* actionMinimize;
|
||||
#endif
|
||||
|
||||
QSystemTrayIcon *trayIcon;
|
||||
QMenu *notifyMenu;
|
||||
QMenu *trayMenu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue