Skip to content
Snippets Groups Projects
Commit 4415224f authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Devices: Display auto-detection info status in settings widget.


Change-Id: I7e9c00ae3f4e094f24e71c6bde3060027188ebeb
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@nokia.com>
parent aa6571ba
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,7 @@ void DeviceSettingsWidget::displayCurrent()
m_ui->defaultDeviceButton->setEnabled(
m_deviceManager->defaultDevice(current->type()) != current);
m_ui->osTypeValueLabel->setText(DeviceManager::displayNameForDeviceType(current->type()));
m_ui->autoDetectionValueLabel->setText(current->isAutoDetected() ? tr("Yes") : tr("No"));
m_nameValidator->setDisplayName(current->displayName());
m_ui->removeConfigButton->setEnabled(!current->isAutoDetected());
......
......@@ -52,20 +52,17 @@
<string>General</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="1">
<widget class="QLabel" name="osTypeValueLabel">
<item row="1" column="0">
<widget class="QLabel" name="oSTypeLabel">
<property name="text">
<string/>
<string>Type:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="nameLineEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="oSTypeLabel">
<item row="1" column="1">
<widget class="QLabel" name="osTypeValueLabel">
<property name="text">
<string>Type:</string>
<string/>
</property>
</widget>
</item>
......@@ -82,6 +79,9 @@
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="nameLineEdit"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="deviceNameLabel">
<property name="text">
......@@ -92,6 +92,20 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="autoDetectionKeyLabel">
<property name="text">
<string>Auto-detected:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="autoDetectionValueLabel">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment