From: Christoph Egger Date: Thu, 5 Mar 2015 13:35:21 +0000 (+0100) Subject: Convert menu items to new style Qt Signal connects X-Git-Tag: v0.1~70 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=2f0e025080dfcfa7c8f7395692502ab80d88ed65;p=frida%2Ffrida.git Convert menu items to new style Qt Signal connects --- diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 3b805d5..625e7ac 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -27,12 +27,12 @@ Mainwindow::Mainwindow(InformationManager* mgr) saveAction = new QAction(tr("&Save"), this); exitAction = new QAction(tr("E&xit"), this); - connect(openAction, SIGNAL(triggered()), - this, SLOT(open())); - connect(saveAction, SIGNAL(triggered()), - this, SLOT(save())); - connect(exitAction, SIGNAL(triggered()), - qApp, SLOT(quit())); + connect(openAction, &QAction::triggered, + this, &Mainwindow::open); + connect(saveAction, &QAction::triggered, + this, &Mainwindow::save); + connect(exitAction, &QAction::triggered, + qApp, &QApplication::quit); fileMenu = menuBar()->addMenu(tr("&File")); fileMenu->addAction(openAction); diff --git a/src/gui/qt.hxx b/src/gui/qt.hxx index ae370d5..ac08c0b 100644 --- a/src/gui/qt.hxx +++ b/src/gui/qt.hxx @@ -27,5 +27,6 @@ #include #include #include +#include #endif /* INCLUDE__qt_hxx_ */