summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/declarative-camera/qmlcamera.cpp
diff options
context:
space:
mode:
authorJochen Seemann <seemann.jochen@gmail.com>2017-11-23 21:12:24 +0100
committerJochen Seemann <seemann.jochen@gmail.com>2017-12-19 12:04:34 +0000
commit93630cd621b472d73fc8456ca396cda012a1aee0 (patch)
treebb42ea8fc88d5961493caccbd116c5b1748a089f /examples/multimedia/declarative-camera/qmlcamera.cpp
parent5629823b05ca7d24924ac879b5a0469a3cb03e78 (diff)
examples: use Qt5-style connects where possible
Additionally, remove obsolete CHECKED_CONNECT macro from the spectrum example. Change-Id: Id6fe01718679463c2b025d688c970583d64d60e9 Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io> Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'examples/multimedia/declarative-camera/qmlcamera.cpp')
-rw-r--r--examples/multimedia/declarative-camera/qmlcamera.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/multimedia/declarative-camera/qmlcamera.cpp b/examples/multimedia/declarative-camera/qmlcamera.cpp
index 1118e0dc0..edffe6bb0 100644
--- a/examples/multimedia/declarative-camera/qmlcamera.cpp
+++ b/examples/multimedia/declarative-camera/qmlcamera.cpp
@@ -59,7 +59,8 @@ int main(int argc, char* argv[])
view.setResizeMode(QQuickView::SizeRootObjectToView);
// Qt.quit() called in embedded .qml by default only emits
// quit() signal, so do this (optionally use Qt.exit()).
- QObject::connect(view.engine(), SIGNAL(quit()), qApp, SLOT(quit()));
+ QObject::connect(view.engine(), &QQmlEngine::quit,
+ qApp, &QGuiApplication::quit);
view.setSource(QUrl("qrc:///declarative-camera.qml"));
view.resize(800, 480);
view.show();