//System tray icon action context menu
minimizeAction
= new QAction(tr
("Mi&nimize"),
this);
connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide()));
maximizeAction
= new QAction(tr
("Ma&ximize"),
this);
connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized()));
restoreAction
= new QAction(tr
("&Restore"),
this);
connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal()));
quitAction
= new QAction(tr
("&Quit"),
this);
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
//ToolbarAction(itemExit).icon(), ToolbarAction(itemExit).text(), parent);
cmenu.addAction(tr("Show"), this, SLOT(show()));
cmenu.addAction(tr("Hide"), this, SLOT(hide()));
cmenu.addSeparator();
cmenu.addAction(minimizeAction);
cmenu.addAction(maximizeAction);
cmenu.addAction(restoreAction);
cmenu.addAction(quitAction);
//System tray icon action context menu
minimizeAction = new QAction(tr("Mi&nimize"), this);
connect(minimizeAction, SIGNAL(triggered()), this, SLOT(hide()));
maximizeAction = new QAction(tr("Ma&ximize"), this);
connect(maximizeAction, SIGNAL(triggered()), this, SLOT(showMaximized()));
restoreAction = new QAction(tr("&Restore"), this);
connect(restoreAction, SIGNAL(triggered()), this, SLOT(showNormal()));
quitAction = new QAction(tr("&Quit"), this);
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
//ToolbarAction(itemExit).icon(), ToolbarAction(itemExit).text(), parent);
cmenu.addAction(tr("Show"), this, SLOT(show()));
cmenu.addAction(tr("Hide"), this, SLOT(hide()));
cmenu.addSeparator();
cmenu.addAction(minimizeAction);
cmenu.addAction(maximizeAction);
cmenu.addAction(restoreAction);
cmenu.addAction(quitAction);
To copy to clipboard, switch view to plain text mode
Bookmarks