summaryrefslogtreecommitdiff
path: root/examples/terminal
diff options
context:
space:
mode:
authorDenis Shienkov <scapig@yandex.ru>2012-04-07 12:49:43 +0400
committerDenis Shienkov <scapig@yandex.ru>2012-04-07 14:47:17 +0200
commit2782dca603c8dde184647b73f86066cb60a1a443 (patch)
tree9924e40fdd3b03a36967528776db2ac1fe2d2a75 /examples/terminal
parent20eaabb068566f5dd4f781367e2134d12cac3852 (diff)
downloadqtserialport-2782dca603c8dde184647b73f86066cb60a1a443.tar.gz
In example of Terminal fixed displayed vendor and product identifiers
Change-Id: I7199c283142125af5e162373b6b146d9ee648ba9 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Denis Shienkov <scapig@yandex.ru>
Diffstat (limited to 'examples/terminal')
-rw-r--r--examples/terminal/settingsdialog.cpp5
-rw-r--r--examples/terminal/settingsdialog.ui4
2 files changed, 6 insertions, 3 deletions
diff --git a/examples/terminal/settingsdialog.cpp b/examples/terminal/settingsdialog.cpp
index c3ca794..1bc5861 100644
--- a/examples/terminal/settingsdialog.cpp
+++ b/examples/terminal/settingsdialog.cpp
@@ -37,6 +37,8 @@ void SettingsDialog::showPortInfo(int idx)
ui->descriptionLabel->setText(tr("Description: %1").arg(list.at(1)));
ui->manufacturerLabel->setText(tr("Manufacturer: %1").arg(list.at(2)));
ui->locationLabel->setText(tr("Location: %1").arg(list.at(3)));
+ ui->vidLabel->setText(tr("Vendor ID: %1").arg(list.at(4)));
+ ui->pidLabel->setText(tr("Product ID: %1").arg(list.at(5)));
}
}
@@ -89,7 +91,8 @@ void SettingsDialog::fillPortsInfo()
foreach (const SerialPortInfo &info, SerialPortInfo::availablePorts()) {
QStringList list;
list << info.portName() << info.description()
- << info.manufacturer() << info.systemLocation();
+ << info.manufacturer() << info.systemLocation()
+ << info.vendorIdentifier() << info.productIdentifier();
ui->portsBox->addItem(list.at(0), list);
}
diff --git a/examples/terminal/settingsdialog.ui b/examples/terminal/settingsdialog.ui
index d88f2ea..0e3caa9 100644
--- a/examples/terminal/settingsdialog.ui
+++ b/examples/terminal/settingsdialog.ui
@@ -47,14 +47,14 @@
<item row="4" column="0">
<widget class="QLabel" name="vidLabel">
<property name="text">
- <string>Vid:</string>
+ <string>Vendor ID:</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="pidLabel">
<property name="text">
- <string>Pid:</string>
+ <string>Product ID:</string>
</property>
</widget>
</item>