Skip to content

Commit

Permalink
Some label changes to 3D directional lights
Browse files Browse the repository at this point in the history
Remove colon at the end of label
Add units suffix to widgets
and clean ui file
  • Loading branch information
DelazJ authored and nyalldawson committed Sep 24, 2020
1 parent 50f7a0e commit c06482e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/ui/3d/qgslightswidget.ui
Expand Up @@ -216,7 +216,7 @@
<layout class="QGridLayout" name="gridLayout_4">
<item row="1" column="0" colspan="3">
<layout class="QGridLayout" name="gridLayout_3">
<item row="4" column="1">
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="spinDirectionZ">
<property name="decimals">
<number>1</number>
Expand All @@ -229,7 +229,7 @@
</property>
</widget>
</item>
<item row="5" column="1">
<item row="4" column="1">
<widget class="QgsColorButton" name="btnDirectionalColor">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
Expand All @@ -245,28 +245,28 @@
</property>
</widget>
</item>
<item row="6" column="0">
<item row="5" column="0">
<widget class="QLabel" name="label_14">
<property name="text">
<string>Intensity</string>
</property>
</widget>
</item>
<item row="2" column="0" rowspan="2">
<item row="2" column="0">
<widget class="QLabel" name="label_13">
<property name="text">
<string>Y</string>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="3" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Z</string>
</property>
</widget>
</item>
<item row="2" column="1" rowspan="2">
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="spinDirectionY">
<property name="decimals">
<number>1</number>
Expand All @@ -292,7 +292,7 @@
</property>
</widget>
</item>
<item row="6" column="1">
<item row="5" column="1">
<widget class="QDoubleSpinBox" name="spinDirectionalIntensity">
<property name="decimals">
<number>1</number>
Expand All @@ -302,7 +302,7 @@
</property>
</widget>
</item>
<item row="5" column="0">
<item row="4" column="0">
<widget class="QLabel" name="label_16">
<property name="text">
<string>Color</string>
Expand All @@ -319,7 +319,7 @@
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Light direction:</string>
<string>Light direction</string>
</property>
</widget>
</item>
Expand Down
10 changes: 8 additions & 2 deletions src/ui/3d/shadowrenderingsettingswidget.ui
Expand Up @@ -6,15 +6,15 @@
<rect>
<x>0</x>
<y>0</y>
<width>350</width>
<width>416</width>
<height>139</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="labelUsedDirectionalLight">
<property name="text">
<string>Used directional light</string>
<string>Directional light</string>
</property>
</widget>
</item>
Expand All @@ -30,6 +30,9 @@
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="shadowRenderinMaximumDistanceSpinBox">
<property name="suffix">
<string> map units</string>
</property>
<property name="maximum">
<double>9999999999.000000000000000</double>
</property>
Expand Down Expand Up @@ -67,6 +70,9 @@
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="shadowMapResolutionSpinBox">
<property name="suffix">
<string> px</string>
</property>
<property name="minimum">
<number>128</number>
</property>
Expand Down

0 comments on commit c06482e

Please sign in to comment.