Skip to content

Commit

Permalink
Move field contraint config widgets into a group box
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 21, 2016
1 parent c0ac9b1 commit 965f1d4
Showing 1 changed file with 63 additions and 48 deletions.
111 changes: 63 additions & 48 deletions src/ui/qgsattributetypeedit.ui
Expand Up @@ -14,14 +14,54 @@
<string>Edit Widget Properties</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QCheckBox" name="isFieldEditableCheckBox">
<property name="text">
<string>Editable</string>
</property>
<property name="checked">
<bool>true</bool>
<item row="2" column="1">
<widget class="QgsCollapsibleGroupBox" name="groupBox">
<property name="title">
<string>Contraints</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="notNullCheckBox">
<property name="text">
<string>Not null</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Constraint</string>
</property>
</widget>
</item>
<item>
<widget class="QgsFieldExpressionWidget" name="constraintExpression" native="true"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Constraint description</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="constraintExpressionDescription"/>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
Expand All @@ -34,8 +74,8 @@
</property>
</widget>
</item>
<item row="0" column="0" rowspan="11">
<widget class="QListWidget" name="selectionListWidget"/>
<item row="6" column="1">
<widget class="QStackedWidget" name="stackedWidget"/>
</item>
<item row="10" column="1">
<widget class="QDialogButtonBox" name="buttonBox">
Expand All @@ -47,49 +87,18 @@
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QStackedWidget" name="stackedWidget"/>
<item row="0" column="0" rowspan="11">
<widget class="QListWidget" name="selectionListWidget"/>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="notNullCheckBox">
<item row="0" column="1">
<widget class="QCheckBox" name="isFieldEditableCheckBox">
<property name="text">
<string>Not null</string>
</property>
</widget>
</item>
<item row="4" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="topMargin">
<number>0</number>
<string>Editable</string>
</property>
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Constraint</string>
</property>
</widget>
</item>
<item>
<widget class="QgsFieldExpressionWidget" name="constraintExpression" native="true"/>
</item>
</layout>
</item>
<item row="5" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="bottomMargin">
<number>0</number>
<property name="checked">
<bool>true</bool>
</property>
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Constraint description</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="constraintExpressionDescription"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
Expand All @@ -100,6 +109,12 @@
<header>qgsfieldexpressionwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsCollapsibleGroupBox</class>
<extends>QGroupBox</extends>
<header>qgscollapsiblegroupbox.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>selectionListWidget</tabstop>
Expand Down

1 comment on commit 965f1d4

@m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented on 965f1d4 Jul 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
It's probably time for qgis/QGIS-Enhancement-Proposals#37

Please sign in to comment.