summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2017-03-23 09:11:17 +0100
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2017-03-23 09:11:17 +0100
commit2022947eaa499b7340e85d807bfc71dc95fcece1 (patch)
tree778b30c2d41a774fe451763c1003fe64dc0b5125 /examples
parentc3899052d45db06bc001d0126be862fe9036db00 (diff)
Remove QMqttClient::subscribed signal
In case subscription status is interesting for the developer, QMqttSubscription is the preferred item to use.
Diffstat (limited to 'examples')
-rw-r--r--examples/mqtt/simpleclient/mainwindow.cpp7
-rw-r--r--examples/mqtt/subscriptions/mainwindow.cpp7
2 files changed, 0 insertions, 14 deletions
diff --git a/examples/mqtt/simpleclient/mainwindow.cpp b/examples/mqtt/simpleclient/mainwindow.cpp
index 702ffbe..f6d35ad 100644
--- a/examples/mqtt/simpleclient/mainwindow.cpp
+++ b/examples/mqtt/simpleclient/mainwindow.cpp
@@ -17,13 +17,6 @@ MainWindow::MainWindow(QWidget *parent) :
connect(m_client, &QMqttClient::stateChanged, this, &MainWindow::updateLogStateChange);
connect(m_client, &QMqttClient::disconnected, this, &MainWindow::brokerDisconnected);
- connect(m_client, &QMqttClient::subscribed, this, [this]() {
- const QString content = QDateTime::currentDateTime().toString()
- + QLatin1String("Subscription Succeeded")
- + QLatin1Char('\n');
- ui->editLog->insertPlainText(content);
- });
-
connect(m_client, &QMqttClient::messageReceived, this, [this](const QString &topic, const QString &message) {
const QString content = QDateTime::currentDateTime().toString()
+ QLatin1String(" Received Topic: ")
diff --git a/examples/mqtt/subscriptions/mainwindow.cpp b/examples/mqtt/subscriptions/mainwindow.cpp
index 2df0cb8..33e54be 100644
--- a/examples/mqtt/subscriptions/mainwindow.cpp
+++ b/examples/mqtt/subscriptions/mainwindow.cpp
@@ -18,13 +18,6 @@ MainWindow::MainWindow(QWidget *parent) :
connect(m_client, &QMqttClient::stateChanged, this, &MainWindow::updateLogStateChange);
connect(m_client, &QMqttClient::disconnected, this, &MainWindow::brokerDisconnected);
- connect(m_client, &QMqttClient::subscribed, this, [this]() {
- const QString content = QDateTime::currentDateTime().toString()
- + QLatin1String("Subscription Succeeded")
- + QLatin1Char('\n');
- ui->editLog->insertPlainText(content);
- });
-
connect(m_client, &QMqttClient::messageReceived, this, [this](const QString &topic, const QString &message) {
const QString content = QDateTime::currentDateTime().toString()
+ QLatin1String(" Received Topic: ")