summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/comapp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/activeqt/comapp/main.cpp')
-rw-r--r--examples/activeqt/comapp/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/activeqt/comapp/main.cpp b/examples/activeqt/comapp/main.cpp
index 4c855dd..db002d5 100644
--- a/examples/activeqt/comapp/main.cpp
+++ b/examples/activeqt/comapp/main.cpp
@@ -264,7 +264,7 @@ int main(int argc, char **argv)
appobject.setVisible(true);
- QObject::connect(qApp, SIGNAL(lastWindowClosed()), &appobject, SLOT(quit()));
+ QObject::connect(&app, &QGuiApplication::lastWindowClosed, &appobject, &Application::quit);
return app.exec();
}