Changeset 41
- Timestamp:
- 01/06/08 17:56:11 (4 years ago)
- File:
-
- 1 edited
-
gui/main_window.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gui/main_window.cpp
r40 r41 100 100 { 101 101 trayIcon = new QSystemTrayIcon(this); 102 trayIconMenu = new QMenu(this); 102 103 103 104 //Setup Actions 104 minimizeAction = new QAction(tr("Mi&nimize"), t his);105 minimizeAction = new QAction(tr("Mi&nimize"), trayIconMenu); 105 106 connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide())); 106 107 107 maximizeAction = new QAction(tr("Ma&ximize"), t his);108 maximizeAction = new QAction(tr("Ma&ximize"), trayIconMenu); 108 109 connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized())); 109 110 110 restoreAction = new QAction(tr("&Restore"), t his);111 restoreAction = new QAction(tr("&Restore"), trayIconMenu); 111 112 connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal())); 112 113 113 quitAction = new QAction(tr("&Quit"), t his);114 quitAction = new QAction(tr("&Quit"), trayIconMenu); 114 115 connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); 115 116 … … 117 118 118 119 //Setup Menu 119 trayIconMenu = new QMenu(this);120 120 trayIconMenu->addAction(minimizeAction); 121 121 trayIconMenu->addAction(maximizeAction);
Note: See TracChangeset
for help on using the changeset viewer.
