summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/modbus/master/main.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2018-05-09 20:43:49 +0200
committerAndré Hartmann <aha_1980@gmx.de>2019-02-13 16:50:50 +0000
commiteb85cebadb546dafe7c87db931164491ad5cca89 (patch)
tree8f967f1091614089dc531e5af9acab1a1a77c1c2 /examples/serialbus/modbus/master/main.cpp
parenteca5edf45a8043b87852698a00dd05acf897ba2c (diff)
Cleanup and modernize the Modbus examples
* Replace static_cast with QOverload * Fix some Clang warnings * Mark user-visible strings with tr() * Disable verbose log output * Replace auto-connect with explicit functor-style connect * Initialize members at declaration * Small style cleanup Change-Id: Idcb6c24a8733e7fd659ad4750ce0798a72c84af6 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/serialbus/modbus/master/main.cpp')
-rw-r--r--examples/serialbus/modbus/master/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/serialbus/modbus/master/main.cpp b/examples/serialbus/modbus/master/main.cpp
index 4f97a39..19a1d5b 100644
--- a/examples/serialbus/modbus/master/main.cpp
+++ b/examples/serialbus/modbus/master/main.cpp
@@ -55,9 +55,8 @@
int main(int argc, char *argv[])
{
- // TODO uncomment this line before release
- // right now we always need it
- QLoggingCategory::setFilterRules(QStringLiteral("qt.modbus* = true"));
+ // Uncomment the following line to enable logging
+ // QLoggingCategory::setFilterRules(QStringLiteral("qt.modbus* = true"));
QApplication a(argc, argv);
MainWindow w;
w.show();