From c726bc85da3921c6a31d4f7d014ddd8b8d7a3f88 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 28 Aug 2015 15:16:57 +0200 Subject: Port examples/opengl to new connection syntax. Change-Id: I486a4a2326bf57ec5ea08bccdcef79c3e5553db5 Reviewed-by: Laszlo Agocs --- examples/opengl/hellowindow/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/opengl/hellowindow/main.cpp') diff --git a/examples/opengl/hellowindow/main.cpp b/examples/opengl/hellowindow/main.cpp index 716280aa5f8..f665ee6fa87 100644 --- a/examples/opengl/hellowindow/main.cpp +++ b/examples/opengl/hellowindow/main.cpp @@ -121,13 +121,13 @@ int main(int argc, char *argv[]) } for (int i = 0; i < renderThreads.size(); ++i) { - QObject::connect(qGuiApp, SIGNAL(lastWindowClosed()), renderThreads.at(i), SLOT(quit())); + QObject::connect(qGuiApp, &QGuiApplication::lastWindowClosed, renderThreads.at(i), &QThread::quit); renderThreads.at(i)->start(); } // Quit after 10 seconds. For platforms that do not have windows that are closeable. if (QCoreApplication::arguments().contains(QStringLiteral("--timeout"))) - QTimer::singleShot(10000, qGuiApp, SLOT(quit())); + QTimer::singleShot(10000, qGuiApp, &QCoreApplication::quit); const int exitValue = app.exec(); -- cgit v1.2.3