summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/btchat/chat.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/btchat/chat.h')
-rw-r--r--examples/bluetooth/btchat/chat.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/bluetooth/btchat/chat.h b/examples/bluetooth/btchat/chat.h
index 57f13257..e4c81b24 100644
--- a/examples/bluetooth/btchat/chat.h
+++ b/examples/bluetooth/btchat/chat.h
@@ -50,13 +50,9 @@
#include "ui_chat.h"
-#include <QDialog>
+#include <QtWidgets/qdialog.h>
-#include <qbluetoothserviceinfo.h>
-#include <qbluetoothsocket.h>
-#include <qbluetoothhostinfo.h>
-
-#include <QDebug>
+#include <QtBluetooth/qbluetoothhostinfo.h>
QT_USE_NAMESPACE
@@ -69,7 +65,7 @@ class Chat : public QDialog
Q_OBJECT
public:
- Chat(QWidget *parent = 0);
+ explicit Chat(QWidget *parent = nullptr);
~Chat();
signals:
@@ -85,12 +81,13 @@ private slots:
void clientDisconnected(const QString &name);
void clientDisconnected();
void connected(const QString &name);
+ void reactOnSocketError(const QString &error);
void newAdapterSelected();
private:
int adapterFromUserSelection() const;
- int currentAdapterIndex;
+ int currentAdapterIndex = 0;
Ui_Chat *ui;
ChatServer *server;