Improve widgets alignment in color ramp gradient dialog

This commit is contained in:
Harrissou Sant-anna 2023-07-11 04:21:25 +02:00 committed by Nyall Dawson
parent 0caaa46e64
commit 533d0b3c30

View File

@ -87,7 +87,7 @@
<item> <item>
<widget class="QComboBox" name="cboType"> <widget class="QComboBox" name="cboType">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -147,8 +147,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>850</width> <width>856</width>
<height>494</height> <height>488</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1"> <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1">
@ -170,7 +170,25 @@
<string>Gradient Stop</string> <string>Gradient Stop</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="rightMargin">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QgsCompoundColorWidget" name="mColorWidget" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item row="0" column="0"> <item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="text"> <property name="text">
<string>Relative &amp;position</string> <string>Relative &amp;position</string>
@ -180,21 +198,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="5"> <item>
<widget class="QPushButton" name="mDeleteStopButton">
<property name="text">
<string>&amp;Delete Stop</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="6">
<widget class="QgsCompoundColorWidget" name="mColorWidget" native="true">
<property name="focusPolicy">
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QgsDoubleSpinBox" name="mPositionSpinBox"> <widget class="QgsDoubleSpinBox" name="mPositionSpinBox">
<property name="suffix"> <property name="suffix">
<string> %</string> <string> %</string>
@ -204,7 +208,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="4"> <item>
<widget class="QComboBox" name="mStopColorSpec"/>
</item>
<item>
<widget class="QComboBox" name="mStopDirection"/>
</item>
<item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
@ -217,11 +227,14 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="0" column="2"> <item>
<widget class="QComboBox" name="mStopColorSpec"/> <widget class="QPushButton" name="mDeleteStopButton">
<property name="text">
<string>&amp;Delete Stop</string>
</property>
</widget>
</item> </item>
<item row="0" column="3"> </layout>
<widget class="QComboBox" name="mStopDirection"/>
</item> </item>
</layout> </layout>
</widget> </widget>