Skip to content
Permalink
Browse files

[ui] Revamp the svg/raster marker size widgets placement

Benefits are:
- data-defined width and height properties button closer to
  width and height spinboxes
- minimum horizontal width reduced
  • Loading branch information
nirvn committed May 17, 2019
1 parent 6ca1b30 commit 92ea2a5e4520d64d3ca1bd2090a21ce49b8cbc54
Showing with 46 additions and 40 deletions.
  1. +23 −20 src/ui/symbollayer/widget_rastermarker.ui
  2. +23 −20 src/ui/symbollayer/widget_svgmarker.ui
@@ -160,7 +160,7 @@
</item>
</layout>
</item>
<item row="3" column="1">
<item row="3" column="1" colspan="2">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="2" rowspan="2">
<layout class="QHBoxLayout" name="_2">
@@ -194,6 +194,20 @@
</item>
</layout>
</item>
<item row="0" column="3">
<widget class="QgsPropertyOverrideButton" name="mWidthDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QgsPropertyOverrideButton" name="mHeightDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
@@ -258,7 +272,14 @@
</property>
</widget>
</item>
<item row="0" column="3" rowspan="2">
<item row="2" column="0">
<widget class="QLabel" name="label_13">
<property name="text">
<string>Unit</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QgsUnitSelectionWidget" name="mSizeUnitWidget" native="true">
<property name="minimumSize">
<size>
@@ -358,24 +379,6 @@
</property>
</widget>
</item>
<item row="3" column="2">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QgsPropertyOverrideButton" name="mWidthDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
<item>
<widget class="QgsPropertyOverrideButton" name="mHeightDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="10" column="1">
<widget class="QComboBox" name="mVerticalAnchorComboBox">
<item>
@@ -130,24 +130,6 @@
</property>
</widget>
</item>
<item row="0" column="3">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QgsPropertyOverrideButton" name="mWidthDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
<item>
<widget class="QgsPropertyOverrideButton" name="mHeightDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="1">
<widget class="QgsColorButton" name="mChangeStrokeColorButton">
<property name="sizePolicy">
@@ -414,7 +396,7 @@
</property>
</widget>
</item>
<item row="0" column="1">
<item row="0" column="1" colspan="3">
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QLabel" name="label_10">
@@ -423,6 +405,20 @@
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QgsPropertyOverrideButton" name="mWidthDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QgsPropertyOverrideButton" name="mHeightDDBtn">
<property name="text">
<string>…</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QgsDoubleSpinBox" name="spinWidth">
<property name="sizePolicy">
@@ -512,7 +508,14 @@
</item>
</layout>
</item>
<item row="0" column="3" rowspan="2">
<item row="2" column="0">
<widget class="QLabel" name="label_13">
<property name="text">
<string>Unit</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QgsUnitSelectionWidget" name="mSizeUnitWidget" native="true">
<property name="minimumSize">
<size>

0 comments on commit 92ea2a5

Please sign in to comment.
You can’t perform that action at this time.