summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/btchat/remoteselector.h
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/remoteselector.h
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/remoteselector.h')
-rw-r--r--examples/bluetooth/btchat/remoteselector.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/bluetooth/btchat/remoteselector.h b/examples/bluetooth/btchat/remoteselector.h
index 9174cabd..54649ba9 100644
--- a/examples/bluetooth/btchat/remoteselector.h
+++ b/examples/bluetooth/btchat/remoteselector.h
@@ -51,13 +51,13 @@
#ifndef REMOTESELECTOR_H
#define REMOTESELECTOR_H
-#include <QDialog>
+#include <QtWidgets/qdialog.h>
-#include <qbluetoothuuid.h>
-#include <qbluetoothserviceinfo.h>
-#include <qbluetoothservicediscoveryagent.h>
+#include <QtBluetooth/qbluetoothaddress.h>
+#include <QtBluetooth/qbluetoothserviceinfo.h>
+#include <QtBluetooth/qbluetoothuuid.h>
-QT_FORWARD_DECLARE_CLASS(QModelIndex)
+QT_FORWARD_DECLARE_CLASS(QBluetoothServiceDiscoveryAgent)
QT_FORWARD_DECLARE_CLASS(QListWidgetItem)
QT_USE_NAMESPACE
@@ -73,7 +73,7 @@ class RemoteSelector : public QDialog
Q_OBJECT
public:
- explicit RemoteSelector(const QBluetoothAddress &localAdapter, QWidget *parent = 0);
+ explicit RemoteSelector(const QBluetoothAddress &localAdapter, QWidget *parent = nullptr);
~RemoteSelector();
void startDiscovery(const QBluetoothUuid &uuid);