Clear comboxes when piece path was deleted.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-29 16:50:40 +02:00
parent 8bb3377a60
commit a2518509a4
2 changed files with 41 additions and 4 deletions

View file

@ -592,6 +592,17 @@ void DialogSeamAllowance::CustomSAChanged(int row)
{
if (ui->listWidgetCustomSA->count() == 0 || row == -1 || row >= ui->listWidgetCustomSA->count())
{
ui->comboBoxStartPoint->blockSignals(true);
ui->comboBoxStartPoint->clear();
ui->comboBoxStartPoint->blockSignals(false);
ui->comboBoxEndPoint->blockSignals(true);
ui->comboBoxEndPoint->clear();
ui->comboBoxEndPoint->blockSignals(false);
ui->comboBoxIncludeType->blockSignals(true);
ui->comboBoxIncludeType->clear();
ui->comboBoxIncludeType->blockSignals(false);
return;
}

View file

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>559</width>
<height>476</height>
<width>476</width>
<height>504</height>
</rect>
</property>
<property name="windowTitle">
@ -301,11 +301,17 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="opaqueResize">
<bool>true</bool>
</property>
<widget class="QWidget" name="layoutWidget">
<layout class="QFormLayout" name="formLayout_2">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<property name="horizontalSpacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="labelStartPoint">
<property name="text">
@ -334,11 +340,31 @@
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="comboBoxIncludeType"/>
<widget class="QComboBox" name="comboBoxIncludeType">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QListWidget" name="listWidgetCustomSA"/>
<widget class="QListWidget" name="listWidgetCustomSA">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeIncrement">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</widget>
</widget>
</item>
</layout>