Compatibility with Qt5.5

This commit is contained in:
lupoDharkael
2017-08-19 14:49:29 +02:00
parent 3a79ac2dd5
commit f0b1aceaf6
5 changed files with 26 additions and 17 deletions

View File

@@ -87,13 +87,13 @@ void Controller::enableTrayIcon() {
return;
}
ConfigHandler().setDisabledTrayIcon(false);
QAction *configAction = new QAction(tr("&Configuration"));
QAction *configAction = new QAction(tr("&Configuration"), this);
connect(configAction, &QAction::triggered, this,
&Controller::openConfigWindow);
QAction *infoAction = new QAction(tr("&Information"));
QAction *infoAction = new QAction(tr("&Information"), this);
connect(infoAction, &QAction::triggered, this,
&Controller::openInfoWindow);
QAction *quitAction = new QAction(tr("&Quit"));
QAction *quitAction = new QAction(tr("&Quit"), this);
connect(quitAction, &QAction::triggered, qApp,
&QCoreApplication::quit);