summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl2/mainwindow.cpp
diff options
context:
space:
mode:
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();