Skip to content
Snippets Groups Projects
Commit e14cd6b3 authored by Edric Milaret's avatar Edric Milaret Committed by gerrit2
Browse files

add possibility to quit from taskbar

Change-Id: Iad047c2d3c206b78fda6af1b3c1f38010fbda6bf
Tuleap: #599
parent 1343831f
No related branches found
No related tags found
No related merge requests found
...@@ -54,9 +54,15 @@ MainWindow::MainWindow(QWidget* parent) : ...@@ -54,9 +54,15 @@ MainWindow::MainWindow(QWidget* parent) :
QMenu* menu = new QMenu(); QMenu* menu = new QMenu();
auto configAction = new QAction("Configuration", this); auto configAction = new QAction(tr("Configuration"), this);
menu->addAction(configAction); menu->addAction(configAction);
auto exitAction = new QAction(tr("Exit"), this);
connect(exitAction, &QAction::triggered, [this](){
QCoreApplication::exit();
});
menu->addAction(exitAction);
sysIcon.setContextMenu(menu); sysIcon.setContextMenu(menu);
sysIcon.show(); sysIcon.show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment