summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl2/mainwindow.cpp
diff options
context:
space:
mode:
authorBenjamin Summerton <ben.16bpp@gmail.com>2015-06-28 17:39:24 -0500
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-06-29 11:30:01 +0000
commit2a526b12ce4759e815f59b28ef55186259b7db42 (patch)
treeaa9a52b5eb8bc3a3450168cfc566af6f4ebdfd3a /examples/opengl/hellogl2/mainwindow.cpp
parent2a81516835c680c29f3de9241a8c28027624ce4f (diff)
Updated Hello GL2 Example to new Signal/Slot syntax
The Hello GL2 Example was using the older Signal/Slot syntax that made use of the macros `SIGNAL()` and `SLOT()`. I changed it to the newer one. Change-Id: I8e55015383847a04b07f751fe9fc94b81956a896 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples/opengl/hellogl2/mainwindow.cpp')
-rw-r--r--examples/opengl/hellogl2/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/hellogl2/mainwindow.cpp b/examples/opengl/hellogl2/mainwindow.cpp
index 104cf24b37..b938300349 100644
--- a/examples/opengl/hellogl2/mainwindow.cpp
+++ b/examples/opengl/hellogl2/mainwindow.cpp
@@ -51,7 +51,7 @@ MainWindow::MainWindow()
QAction *addNew = new QAction(menuWindow);
addNew->setText(tr("Add new"));
menuWindow->addAction(addNew);
- connect(addNew, SIGNAL(triggered()), this, SLOT(onAddNew()));
+ connect(addNew, &QAction::triggered, this, &MainWindow::onAddNew);
setMenuBar(menuBar);
onAddNew();