Commit 333c2ae5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Show where we need to port to qt5

parent da84e576
......@@ -428,21 +428,25 @@ void MainWindow::initActions()
QAction* action = mActionNew->displayAlarmAction();
actions->addAction(QLatin1String("newDisplay"), action);
#pragma "port QT5"
//QT5 action->setGlobalShortcut(dummy); // actions->addAction() must be called first!
connect(action, &QAction::triggered, this, &MainWindow::slotNewDisplay);
action = mActionNew->commandAlarmAction();
actions->addAction(QLatin1String("newCommand"), action);
#pragma "port QT5"
//QT5 action->setGlobalShortcut(dummy); // actions->addAction() must be called first!
connect(action, &QAction::triggered, this, &MainWindow::slotNewCommand);
action = mActionNew->emailAlarmAction();
actions->addAction(QLatin1String("newEmail"), action);
#pragma "port QT5"
//QT5 action->setGlobalShortcut(dummy); // actions->addAction() must be called first!
connect(action, &QAction::triggered, this, &MainWindow::slotNewEmail);
action = mActionNew->audioAlarmAction();
actions->addAction(QLatin1String("newAudio"), action);
#pragma "port QT5"
//QT5 action->setGlobalShortcut(dummy); // actions->addAction() must be called first!
connect(action, &QAction::triggered, this, &MainWindow::slotNewAudio);
......@@ -517,6 +521,8 @@ void MainWindow::initActions()
mActionSpreadWindows = KAlarm::createSpreadWindowsAction(this);
actions->addAction(QLatin1String("spread"), mActionSpreadWindows);
#pragma "port QT5"
//QT5 mActionSpreadWindows->setGlobalShortcut(dummy); // actions->addAction() must be called first!
mActionImportAlarms = new QAction(i18nc("@action", "Import &Alarms..."), this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment