From 01aa670563dbe01e83a9e5b98634a1ef8472a152 Mon Sep 17 00:00:00 2001 From: "Kilic, Deniz" <d.kilic@fz-juelich.de> Date: Fri, 12 Feb 2021 16:07:23 +0100 Subject: [PATCH] Allow resizing of all tabs --- ui/control.ui | 240 +++++++++++++++----------------------------------- 1 file changed, 71 insertions(+), 169 deletions(-) diff --git a/ui/control.ui b/ui/control.ui index 05d99564d..050a77f79 100644 --- a/ui/control.ui +++ b/ui/control.ui @@ -71,7 +71,7 @@ <enum>Qt::LeftToRight</enum> </property> <property name="currentIndex"> - <number>0</number> + <number>2</number> </property> <property name="tabsClosable"> <bool>false</bool> @@ -3228,9 +3228,9 @@ <property name="geometry"> <rect> <x>0</x> - <y>0</y> + <y>-316</y> <width>337</width> - <height>895</height> + <height>901</height> </rect> </property> <property name="sizePolicy"> @@ -3439,7 +3439,7 @@ </property> <property name="maximumSize"> <size> - <width>350</width> + <width>999</width> <height>16777215</height> </size> </property> @@ -3449,32 +3449,22 @@ <property name="checkable"> <bool>false</bool> </property> - <widget class="QCheckBox" name="roiShow"> - <property name="geometry"> - <rect> - <x>10</x> - <y>20</y> - <width>49</width> - <height>18</height> - </rect> - </property> - <property name="text"> - <string>show</string> - </property> - </widget> - <widget class="QCheckBox" name="roiFix"> - <property name="geometry"> - <rect> - <x>80</x> - <y>20</y> - <width>36</width> - <height>18</height> - </rect> - </property> - <property name="text"> - <string>fix</string> - </property> - </widget> + <layout class="QHBoxLayout" name="horizontalLayout_24"> + <item> + <widget class="QCheckBox" name="roiShow"> + <property name="text"> + <string>show</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="roiFix"> + <property name="text"> + <string>fix</string> + </property> + </widget> + </item> + </layout> </widget> </item> <item> @@ -3487,7 +3477,7 @@ </property> <property name="maximumSize"> <size> - <width>350</width> + <width>9999</width> <height>16777215</height> </size> </property> @@ -3600,7 +3590,7 @@ </property> <property name="maximumSize"> <size> - <width>350</width> + <width>9999</width> <height>999</height> </size> </property> @@ -3975,7 +3965,7 @@ </property> <property name="maximumSize"> <size> - <width>350</width> + <width>9999</width> <height>222</height> </size> </property> @@ -4498,7 +4488,7 @@ <x>0</x> <y>0</y> <width>337</width> - <height>906</height> + <height>900</height> </rect> </property> <property name="sizePolicy"> @@ -4591,19 +4581,6 @@ </property> </widget> </item> - <item> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </item> <item> @@ -4656,19 +4633,6 @@ </property> </widget> </item> - <item> - <spacer name="horizontalSpacer_15"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </item> <item> @@ -4688,22 +4652,6 @@ <property name="spacing"> <number>2</number> </property> - <item row="3" column="1"> - <widget class="QLabel" name="trackNumberNow"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>0</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> <item row="1" column="0"> <widget class="QLabel" name="label_22"> <property name="sizePolicy"> @@ -4729,6 +4677,22 @@ </property> </widget> </item> + <item row="3" column="1"> + <widget class="QLabel" name="trackNumberNow"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>0</string> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + </widget> + </item> <item row="3" column="0"> <widget class="QLabel" name="label_23"> <property name="sizePolicy"> @@ -4754,8 +4718,8 @@ </property> </widget> </item> - <item row="1" column="1"> - <widget class="QLabel" name="trackNumberAll"> + <item row="2" column="1"> + <widget class="QLabel" name="trackNumberVisible"> <property name="font"> <font> <weight>75</weight> @@ -4766,22 +4730,25 @@ <string>0</string> </property> <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> </property> </widget> </item> - <item row="1" column="2"> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> + <item row="1" column="1"> + <widget class="QLabel" name="trackNumberAll"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>0</height> - </size> + <property name="text"> + <string>0</string> </property> - </spacer> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + </widget> </item> <item row="2" column="0"> <widget class="QLabel" name="label_65"> @@ -4808,22 +4775,6 @@ </property> </widget> </item> - <item row="2" column="1"> - <widget class="QLabel" name="trackNumberVisible"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>0</string> - </property> - <property name="alignment"> - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> </layout> </item> <item> @@ -4946,7 +4897,7 @@ </property> <property name="maximumSize"> <size> - <width>324</width> + <width>9999</width> <height>16777215</height> </size> </property> @@ -5228,7 +5179,7 @@ </widget> </item> <item> - <layout class="QHBoxLayout" name="horizontalLayout_9" stretch="1,0,0,0,0,0"> + <layout class="QHBoxLayout" name="horizontalLayout_9" stretch="1,0,0,0,0"> <item> <widget class="QPushButton" name="trackTest"> <property name="maximumSize"> @@ -5330,19 +5281,6 @@ </property> </widget> </item> - <item> - <spacer name="horizontalSpacer_14"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </item> <item> @@ -5361,7 +5299,7 @@ </property> <property name="maximumSize"> <size> - <width>324</width> + <width>9999</width> <height>16777215</height> </size> </property> @@ -5504,7 +5442,7 @@ </property> <property name="maximumSize"> <size> - <width>324</width> + <width>9999</width> <height>16777215</height> </size> </property> @@ -5578,19 +5516,6 @@ </property> </widget> </item> - <item> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </item> <item> @@ -5667,19 +5592,6 @@ </property> </widget> </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> </layout> </item> <item> @@ -7129,7 +7041,13 @@ </spacer> </item> <item> - <layout class="QGridLayout"> + <layout class="QFormLayout" name="formLayout"> + <property name="horizontalSpacing"> + <number>0</number> + </property> + <property name="verticalSpacing"> + <number>0</number> + </property> <property name="leftMargin"> <number>0</number> </property> @@ -7142,9 +7060,6 @@ <property name="bottomMargin"> <number>0</number> </property> - <property name="spacing"> - <number>0</number> - </property> <item row="0" column="0"> <widget class="QLabel" name="label_17"> <property name="minimumSize"> @@ -7164,8 +7079,8 @@ </property> </widget> </item> - <item row="1" column="1"> - <widget class="QSpinBox" name="trackShowAfter"> + <item row="0" column="1"> + <widget class="QSpinBox" name="trackShowBefore"> <property name="maximumSize"> <size> <width>80</width> @@ -7199,8 +7114,8 @@ </property> </widget> </item> - <item row="0" column="1"> - <widget class="QSpinBox" name="trackShowBefore"> + <item row="1" column="1"> + <widget class="QSpinBox" name="trackShowAfter"> <property name="maximumSize"> <size> <width>80</width> @@ -7221,19 +7136,6 @@ </property> </widget> </item> - <item row="0" column="2"> - <spacer> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </item> </layout> </item> </layout> -- GitLab