diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2018-08-14 10:38:48 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2018-08-16 09:21:25 +0000 |
commit | f1aea39b230e1126c9c3bba9a8b8cfe76eae518f (patch) | |
tree | 8e071af2cfe89d9337fab117d7ae3c47e3e17aa5 /examples/bluetooth/btchat/remoteselector.cpp | |
parent | bfb696f799cb9495dc8fdf227f366a76bdcf97e4 (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.cpp')
-rw-r--r-- | examples/bluetooth/btchat/remoteselector.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/bluetooth/btchat/remoteselector.cpp b/examples/bluetooth/btchat/remoteselector.cpp index c1302f6b..2bd1efcc 100644 --- a/examples/bluetooth/btchat/remoteselector.cpp +++ b/examples/bluetooth/btchat/remoteselector.cpp @@ -51,14 +51,13 @@ #include "remoteselector.h" #include "ui_remoteselector.h" -#include <qbluetoothdeviceinfo.h> -#include <qbluetoothaddress.h> -#include <qbluetoothlocaldevice.h> +#include <QtBluetooth/qbluetoothlocaldevice.h> +#include <QtBluetooth/qbluetoothservicediscoveryagent.h> QT_USE_NAMESPACE RemoteSelector::RemoteSelector(const QBluetoothAddress &localAdapter, QWidget *parent) -: QDialog(parent), ui(new Ui::RemoteSelector) + : QDialog(parent), ui(new Ui::RemoteSelector) { ui->setupUi(this); |