diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-02-22 15:05:28 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-02-25 17:12:46 +0100 |
commit | 5fafa8390937a507183936d8ddb543ceef6635a5 (patch) | |
tree | 4abdd24a65fc59bbd922ebb0069f5a51824e658f | |
parent | 180f895023f136a694738667a73674968964bafc (diff) | |
download | qtconnectivity-5fafa8390937a507183936d8ddb543ceef6635a5.tar.gz |
Unify logging preparation across bluetooth examples
This patch streamlines all bluetooth examples to have
logging prepared, but not activated, in main().
Change-Id: Idbc81e2937c56acdc17c8fb81de2b8afe384608d
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | examples/bluetooth/btchat/main.cpp | 4 | ||||
-rw-r--r-- | examples/bluetooth/btscanner/main.cpp | 2 | ||||
-rw-r--r-- | examples/bluetooth/chat/qmlchat.cpp | 2 | ||||
-rw-r--r-- | examples/bluetooth/heartrate-game/main.cpp | 2 | ||||
-rw-r--r-- | examples/bluetooth/heartrate-server/main.cpp | 2 | ||||
-rw-r--r-- | examples/bluetooth/lowenergyscanner/main.cpp | 2 | ||||
-rw-r--r-- | examples/bluetooth/pingpong/main.cpp | 2 |
7 files changed, 9 insertions, 7 deletions
diff --git a/examples/bluetooth/btchat/main.cpp b/examples/bluetooth/btchat/main.cpp index 5c7bbf75..446d3644 100644 --- a/examples/bluetooth/btchat/main.cpp +++ b/examples/bluetooth/btchat/main.cpp @@ -51,11 +51,11 @@ #include "chat.h" #include <QtWidgets/qapplication.h> -//#include <QtCore/QLoggingCategory> +#include <QtCore/QLoggingCategory> int main(int argc, char *argv[]) { - //QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); QApplication app(argc, argv); Chat d; diff --git a/examples/bluetooth/btscanner/main.cpp b/examples/bluetooth/btscanner/main.cpp index ca762802..156f02ad 100644 --- a/examples/bluetooth/btscanner/main.cpp +++ b/examples/bluetooth/btscanner/main.cpp @@ -51,9 +51,11 @@ #include "device.h" #include <QApplication> +#include <QtCore/QLoggingCategory> int main(int argc, char *argv[]) { + // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); QApplication app(argc, argv); DeviceDiscoveryDialog d; diff --git a/examples/bluetooth/chat/qmlchat.cpp b/examples/bluetooth/chat/qmlchat.cpp index e7ce3f3a..7916adf6 100644 --- a/examples/bluetooth/chat/qmlchat.cpp +++ b/examples/bluetooth/chat/qmlchat.cpp @@ -61,7 +61,7 @@ int main(int argc, char *argv[]) { - //QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); QGuiApplication application(argc, argv); QList<QBluetoothHostInfo> infos = QBluetoothLocalDevice::allDevices(); diff --git a/examples/bluetooth/heartrate-game/main.cpp b/examples/bluetooth/heartrate-game/main.cpp index 099f82a7..4a58ac90 100644 --- a/examples/bluetooth/heartrate-game/main.cpp +++ b/examples/bluetooth/heartrate-game/main.cpp @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) { - QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); QGuiApplication app(argc, argv); ConnectionHandler connectionHandler; diff --git a/examples/bluetooth/heartrate-server/main.cpp b/examples/bluetooth/heartrate-server/main.cpp index 7986edd6..426256fe 100644 --- a/examples/bluetooth/heartrate-server/main.cpp +++ b/examples/bluetooth/heartrate-server/main.cpp @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) { - //QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); #ifndef Q_OS_ANDROID QCoreApplication app(argc, argv); #else diff --git a/examples/bluetooth/lowenergyscanner/main.cpp b/examples/bluetooth/lowenergyscanner/main.cpp index 351ab13a..6ae75580 100644 --- a/examples/bluetooth/lowenergyscanner/main.cpp +++ b/examples/bluetooth/lowenergyscanner/main.cpp @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) { - //QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); QGuiApplication app(argc, argv); Device d; diff --git a/examples/bluetooth/pingpong/main.cpp b/examples/bluetooth/pingpong/main.cpp index fc1029de..4e0c4723 100644 --- a/examples/bluetooth/pingpong/main.cpp +++ b/examples/bluetooth/pingpong/main.cpp @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) { - //QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); + // QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true")); QGuiApplication app(argc, argv); PingPong pingPong; QQmlApplicationEngine engine; |