]> git.siccegge.de Git - frida/frida.git/commitdiff
Convert menu items to new style Qt Signal connects
authorChristoph Egger <Christoph.Egger@fau.de>
Thu, 5 Mar 2015 13:35:21 +0000 (14:35 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Thu, 5 Mar 2015 13:35:21 +0000 (14:35 +0100)
src/gui/Mainwindow.cxx
src/gui/qt.hxx

index 3b805d50a68db966cd4a3d7e922a562f2a9c8bc5..625e7acad7d99ae890ee650615b4600f86032b51 100644 (file)
@@ -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);
index ae370d561c3f8658f1401bce16ed5a94aa71157c..ac08c0b6cf1d72556cb243cb0db18548f4c86acf 100644 (file)
@@ -27,5 +27,6 @@
 #include <QShortcut>
 #include <QXmlStreamWriter>
 #include <QXmlStreamReader>
+#include <QApplication>
 
 #endif /* INCLUDE__qt_hxx_ */