summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/btchat/main.cpp
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2018-08-14 10:38:48 +0200
committerOliver Wolff <oliver.wolff@qt.io>2018-08-16 09:21:25 +0000
commitf1aea39b230e1126c9c3bba9a8b8cfe76eae518f (patch)
tree8e071af2cfe89d9337fab117d7ae3c47e3e17aa5 /examples/bluetooth/btchat/main.cpp
parentbfb696f799cb9495dc8fdf227f366a76bdcf97e4 (diff)
Clean up btchat example
- Replace old connect syntax - Clean up includes - Replace 0 with nullptr - Add socket error handling Change-Id: Id4c7634db29a23184d3ce2d92ffa39c71505de12 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
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();