Fleshed out input validation for EditVariableDialog.

This commit is contained in:
Jim Evins
2019-03-17 14:24:55 -04:00
parent 6255939f39
commit d05c6fbfd2
5 changed files with 97 additions and 67 deletions
+19 -34
View File
@@ -24,18 +24,7 @@
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="typeCombo">
<item>
<property name="text">
<string>Numeric</string>
</property>
</item>
<item>
<property name="text">
<string>String</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="typeCombo"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label">
@@ -67,28 +56,7 @@
<item row="3" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QComboBox" name="incrementCombo">
<item>
<property name="text">
<string>Never</string>
</property>
</item>
<item>
<property name="text">
<string>Per Copy</string>
</property>
</item>
<item>
<property name="text">
<string>Per Merge Record</string>
</property>
</item>
<item>
<property name="text">
<string>Per Page</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="incrementCombo"/>
</item>
<item>
<widget class="QLabel" name="stepSizeLabel">
@@ -227,11 +195,28 @@
</hint>
</hints>
</connection>
<connection>
<sender>nameEdit</sender>
<signal>textChanged(QString)</signal>
<receiver>EditVariableDialog</receiver>
<slot>onNameEditChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>371</x>
<y>62</y>
</hint>
<hint type="destinationlabel">
<x>393</x>
<y>165</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>onTypeComboChanged()</slot>
<slot>onValueEditChanged()</slot>
<slot>onIncrementComboChanged()</slot>
<slot>onStepSizeEditChanged()</slot>
<slot>onNameEditChanged()</slot>
</slots>
</ui>