summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/btchat/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/btchat/main.cpp')
-rw-r--r--examples/bluetooth/btchat/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bluetooth/btchat/main.cpp b/examples/bluetooth/btchat/main.cpp
index 84b33ae4..5c7bbf75 100644
--- a/examples/bluetooth/btchat/main.cpp
+++ b/examples/bluetooth/btchat/main.cpp
@@ -50,7 +50,7 @@
#include "chat.h"
-#include <QApplication>
+#include <QtWidgets/qapplication.h>
//#include <QtCore/QLoggingCategory>
int main(int argc, char *argv[])
@@ -59,7 +59,7 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
Chat d;
- QObject::connect(&d, SIGNAL(accepted()), &app, SLOT(quit()));
+ QObject::connect(&d, &Chat::accepted, &app, &QApplication::quit);
#ifdef Q_OS_ANDROID
d.showMaximized();