Gui: Reorder Add Property dialog fields to Name-Value-Group-Type (#26567)
* Gui: Move Tooltip field after Value field in Add Property dialog * Gui: Reorder Add Property dialog fields to Group-Type-Name-Value-Tooltip
This commit is contained in:
@@ -395,7 +395,7 @@ void DlgAddProperty::addEditor(PropertyItem* propertyItem)
|
||||
|
||||
setWidgetForLabel("labelValue", editor.get(), layout());
|
||||
|
||||
QWidget::setTabOrder(ui->comboBoxType, editor.get());
|
||||
QWidget::setTabOrder(ui->lineEditName, editor.get());
|
||||
QWidget::setTabOrder(editor.get(), ui->lineEditToolTip);
|
||||
|
||||
removeSelectionEditor();
|
||||
@@ -537,10 +537,12 @@ void DlgAddProperty::initializeWidgets(ViewProviderVarSet* viewProvider)
|
||||
addButton->setText(tr("Add"));
|
||||
setAddEnabled(false);
|
||||
|
||||
ui->lineEditName->setFocus();
|
||||
comboBoxGroup.setFocus();
|
||||
|
||||
QWidget::setTabOrder(ui->lineEditName, &comboBoxGroup);
|
||||
QWidget::setTabOrder(&comboBoxGroup, ui->comboBoxType);
|
||||
QWidget::setTabOrder(ui->comboBoxType, ui->lineEditName);
|
||||
QWidget::setTabOrder(ui->lineEditName, editor.get());
|
||||
QWidget::setTabOrder(editor.get(), ui->lineEditToolTip);
|
||||
|
||||
adjustSize();
|
||||
}
|
||||
@@ -632,7 +634,7 @@ void DlgAddProperty::removeEditor()
|
||||
placeholder->setMinimumHeight(comboBoxGroup.height());
|
||||
setWidgetForLabel("labelValue", placeholder, layout());
|
||||
|
||||
QWidget::setTabOrder(ui->comboBoxType, ui->lineEditToolTip);
|
||||
QWidget::setTabOrder(ui->lineEditName, ui->lineEditToolTip);
|
||||
editor = nullptr;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,36 +15,36 @@
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="labelName">
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="lineEditName"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="labelGroup">
|
||||
<property name="text">
|
||||
<string>Group</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="labelType">
|
||||
<property name="text">
|
||||
<string>Type</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="comboBoxType">
|
||||
<property name="editable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="labelName">
|
||||
<property name="text">
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="lineEditName"/>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="labelValue">
|
||||
<property name="text">
|
||||
|
||||
Reference in New Issue
Block a user