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,58 +170,71 @@
<string>Gradient Stop</string> <string>Gradient Stop</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <property name="rightMargin">
<widget class="QLabel" name="label_4"> <number>0</number>
<property name="text"> </property>
<string>Relative &amp;position</string> <item row="1" column="0">
</property>
<property name="buddy">
<cstring>mPositionSpinBox</cstring>
</property>
</widget>
</item>
<item row="0" column="5">
<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"> <widget class="QgsCompoundColorWidget" name="mColorWidget" native="true">
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::StrongFocus</enum> <enum>Qt::StrongFocus</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="0">
<widget class="QgsDoubleSpinBox" name="mPositionSpinBox"> <layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="suffix"> <property name="leftMargin">
<string> %</string> <number>0</number>
</property> </property>
<property name="decimals"> <property name="rightMargin">
<number>1</number> <number>6</number>
</property> </property>
</widget> <item>
</item> <widget class="QLabel" name="label_4">
<item row="0" column="4"> <property name="text">
<spacer name="horizontalSpacer"> <string>Relative &amp;position</string>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> <property name="buddy">
</property> <cstring>mPositionSpinBox</cstring>
<property name="sizeHint" stdset="0"> </property>
<size> </widget>
<width>40</width> </item>
<height>20</height> <item>
</size> <widget class="QgsDoubleSpinBox" name="mPositionSpinBox">
</property> <property name="suffix">
</spacer> <string> %</string>
</item> </property>
<item row="0" column="2"> <property name="decimals">
<widget class="QComboBox" name="mStopColorSpec"/> <number>1</number>
</item> </property>
<item row="0" column="3"> </widget>
<widget class="QComboBox" name="mStopDirection"/> </item>
<item>
<widget class="QComboBox" name="mStopColorSpec"/>
</item>
<item>
<widget class="QComboBox" name="mStopDirection"/>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="mDeleteStopButton">
<property name="text">
<string>&amp;Delete Stop</string>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>