summaryrefslogtreecommitdiffstats
path: root/examples/serialport/enumerator
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-08-05 13:43:48 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-08-05 14:40:35 +0200
commitb97dd9ea7a8e9aeeb63dcf173afa722f37d9a573 (patch)
tree19df2564b40940401bf13d42e8ceebf1f866ebdb /examples/serialport/enumerator
parentad2628329e1685dbccd0ac3c5011336cd2c4f786 (diff)
Remove usages of deprecated APIs
- Fixed the build with disabled deprecated APIs. - Made the docs for deprecated APIs to compile conditionally, based on the deprecation version. Task-number: QTBUG-76491 Change-Id: I38fbd84254d3d35b2bc208994c9fd70142450ad8 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'examples/serialport/enumerator')
-rw-r--r--examples/serialport/enumerator/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/serialport/enumerator/main.cpp b/examples/serialport/enumerator/main.cpp
index fef1ce08..ee213519 100644
--- a/examples/serialport/enumerator/main.cpp
+++ b/examples/serialport/enumerator/main.cpp
@@ -70,8 +70,7 @@ int main(int argc, char *argv[])
+ QObject::tr("Manufacturer: ") + info.manufacturer() + "\n"
+ QObject::tr("Serial number: ") + info.serialNumber() + "\n"
+ QObject::tr("Vendor Identifier: ") + (info.hasVendorIdentifier() ? QString::number(info.vendorIdentifier(), 16) : QString()) + "\n"
- + QObject::tr("Product Identifier: ") + (info.hasProductIdentifier() ? QString::number(info.productIdentifier(), 16) : QString()) + "\n"
- + QObject::tr("Busy: ") + (info.isBusy() ? QObject::tr("Yes") : QObject::tr("No")) + "\n";
+ + QObject::tr("Product Identifier: ") + (info.hasProductIdentifier() ? QString::number(info.productIdentifier(), 16) : QString()) + "\n";
auto label = new QLabel(s);
layout->addWidget(label);