forked from qt-creator/qt-creator
Devices: Display auto-detection info status in settings widget.
Change-Id: I7e9c00ae3f4e094f24e71c6bde3060027188ebeb Reviewed-by: Nikolai Kosjar <nikolai.kosjar@nokia.com>
This commit is contained in:
@@ -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,16 +52,6 @@
|
||||
<string>General</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="osTypeValueLabel">
|
||||
<property name="text">
|
||||
<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">
|
||||
<property name="text">
|
||||
@@ -69,6 +59,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="osTypeValueLabel">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
@@ -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>
|
||||
|
Reference in New Issue
Block a user