Skip to content

Commit

Permalink
Cleanup 3d debug panel widgets
Browse files Browse the repository at this point in the history
- Use collapsible groups
- Cleanup padding and margins
- Cleanup spacers
  • Loading branch information
nyalldawson committed Nov 29, 2024
1 parent 8d27378 commit e609f2e
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions src/ui/3d/3ddebugwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<x>0</x>
<y>0</y>
<width>501</width>
<height>753</height>
<height>742</height>
</rect>
</property>
<property name="sizePolicy">
Expand All @@ -74,9 +74,18 @@
<property name="sizeConstraint">
<enum>QLayout::SetDefaultConstraint</enum>
</property>
<property name="leftMargin">
<number>6</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
Expand Down Expand Up @@ -134,17 +143,23 @@
</layout>
</item>
<item>
<widget class="QGroupBox" name="mDebugShadowMapGroupBox">
<widget class="QgsCollapsibleGroupBox" name="mDebugShadowMapGroupBox">
<property name="title">
<string>Debug Shadow Map</string>
<string>Debug shadow map</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="collapsed" stdset="0">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<property name="topMargin">
<number>10</number>
</property>
<item row="0" column="1">
<widget class="QComboBox" name="mDebugShadowMapCornerComboBox"/>
</item>
Expand Down Expand Up @@ -179,16 +194,19 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="mDebugDepthMapGroupBox">
<widget class="QgsCollapsibleGroupBox" name="mDebugDepthMapGroupBox">
<property name="title">
<string>Debug Depth Map</string>
<string>Debug depth map</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="collapsed" stdset="0">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="1">
<widget class="QComboBox" name="mDebugDepthMapCornerComboBox"/>
Expand Down Expand Up @@ -224,7 +242,7 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="mCameraInfoGroupBox">
<widget class="QgsCollapsibleGroupBox" name="mCameraInfoGroupBox">
<property name="title">
<string>Show camera info</string>
</property>
Expand Down Expand Up @@ -359,6 +377,19 @@
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
Expand All @@ -377,6 +408,12 @@
<header>qgsscrollarea.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsCollapsibleGroupBox</class>
<extends>QGroupBox</extends>
<header>qgscollapsiblegroupbox.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
Expand Down

0 comments on commit e609f2e

Please sign in to comment.