Details:Layouts ComboBox in form layouting style

pull/19/head
Michail Vourlakos 5 years ago
parent b918d3e965
commit a37d4df09c

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>783</width> <width>550</width>
<height>593</height> <height>615</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -34,55 +34,46 @@
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QComboBox" name="layoutsCmb"/>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<layout class="QGridLayout" name="gridLayout" columnstretch="5,0,8"> <layout class="QGridLayout" name="gridLayout" columnstretch="5,0,8">
<item row="4" column="2"> <item row="13" column="2">
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout_8">
<item> <item>
<widget class="QComboBox" name="colorsCmb"> <widget class="QLabel" name="inMenuChkLbl">
<property name="minimumSize"> <property name="text">
<size> <string>Show in layouts context menu</string>
<width>320</width>
<height>0</height>
</size>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="horizontalSpacer_10">
<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> </layout>
</item> </item>
<item row="7" column="2"> <item row="10" column="1">
<widget class="QRadioButton" name="backRadioBtn">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="14" column="0">
<widget class="QLabel" name="behaviorSecRowLbl">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="10" column="2">
<layout class="QHBoxLayout" name="backgroundOptLayout"> <layout class="QHBoxLayout" name="backgroundOptLayout">
<item> <item>
<widget class="Latte::Settings::Widget::PatternWidget" name="backPatternWidget" native="true"> <widget class="Latte::Settings::Widget::PatternWidget" name="backPatternWidget" native="true">
@ -109,31 +100,7 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="0" column="0"> <item row="5" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_3">
<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="QLabel" name="iconLbl">
<property name="text">
<string>Icon:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1">
<widget class="QRadioButton" name="colorRadioBtn"> <widget class="QRadioButton" name="colorRadioBtn">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@ -158,26 +125,8 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="11" column="2"> <item row="8" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_10"> <spacer name="verticalSpacer_5">
<item>
<widget class="QLabel" name="borderlessChkLbl">
<property name="text">
<string>Hide window borders for maximized windows</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="11" column="1">
<widget class="QCheckBox" name="borderlessChk">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="1" column="2">
<spacer name="verticalSpacer_3">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
@ -186,27 +135,128 @@
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>15</width> <width>20</width>
<height>20</height> <height>10</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="10" column="1"> <item row="7" column="2">
<widget class="QCheckBox" name="inMenuChk"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="text"> <item>
<string notr="true"/> <widget class="QComboBox" name="colorsCmb">
</property> <property name="minimumSize">
</widget> <size>
<width>320</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_10">
<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>
<item row="11" column="0"> <item row="3" column="2">
<widget class="QLabel" name="behaviorSecRowLbl"> <layout class="QHBoxLayout" name="iconHorLayout">
<item>
<widget class="QPushButton" name="iconBtn">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset theme="cs-desktop">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="iconClearBtn">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>50</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset theme="edit-clear">
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_8">
<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 row="13" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<spacer name="horizontalSpacer_5">
<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="QLabel" name="behaviorLbl">
<property name="text">
<string>Behavior:</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="14" column="1">
<widget class="QCheckBox" name="borderlessChk">
<property name="text"> <property name="text">
<string notr="true"/> <string notr="true"/>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="2"> <item row="11" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_6"> <layout class="QHBoxLayout" name="horizontalLayout_6">
@ -253,17 +303,36 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="7" column="0"> <item row="12" column="2">
<widget class="QLabel" name="backSecondRowLbl"> <spacer name="verticalSpacer_4">
<property name="text"> <property name="orientation">
<string notr="true"/> <enum>Qt::Vertical</enum>
</property> </property>
</widget> <property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item> </item>
<item row="2" column="0"> <item row="5" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_4"> <layout class="QHBoxLayout" name="colorsOptLayout">
<item> <item>
<spacer name="horizontalSpacer_4"> <widget class="Latte::Settings::Widget::PatternWidget" name="colorPatternWidget" native="true">
<property name="minimumSize">
<size>
<width>320</width>
<height>60</height>
</size>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -275,25 +344,19 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QLabel" name="backgroundLbl">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Background:</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item row="10" column="0"> <item row="13" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_5"> <widget class="QCheckBox" name="inMenuChk">
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item> <item>
<spacer name="horizontalSpacer_5"> <spacer name="horizontalSpacer_11">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -306,39 +369,41 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QLabel" name="behaviorLbl"> <widget class="QLabel" name="layoutLbl">
<property name="text"> <property name="text">
<string>Behavior:</string> <string>Layout:</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="10" column="2"> <item row="4" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_8"> <spacer name="verticalSpacer_3">
<item> <property name="orientation">
<widget class="QLabel" name="inMenuChkLbl"> <enum>Qt::Vertical</enum>
<property name="text"> </property>
<string>Show in layouts context menu</string> <property name="sizeType">
</property> <enum>QSizePolicy::Fixed</enum>
</widget> </property>
</item> <property name="sizeHint" stdset="0">
</layout> <size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item> </item>
<item row="2" column="2"> <item row="10" column="0">
<layout class="QHBoxLayout" name="colorsOptLayout"> <widget class="QLabel" name="backSecondRowLbl">
<item> <property name="text">
<widget class="Latte::Settings::Widget::PatternWidget" name="colorPatternWidget" native="true"> <string notr="true"/>
<property name="minimumSize"> </property>
<size> </widget>
<width>320</width> </item>
<height>60</height> <item row="5" column="0">
</size> <layout class="QHBoxLayout" name="horizontalLayout_4">
</property>
</widget>
</item>
<item> <item>
<spacer name="horizontalSpacer_6"> <spacer name="horizontalSpacer_4">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -350,52 +415,36 @@
</property> </property>
</spacer> </spacer>
</item> </item>
</layout>
</item>
<item row="0" column="2">
<layout class="QHBoxLayout" name="iconHorLayout">
<item> <item>
<widget class="QPushButton" name="iconBtn"> <widget class="QLabel" name="backgroundLbl">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>0</width>
<height>50</height> <height>0</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string notr="true"/> <string>Background:</string>
</property>
<property name="icon">
<iconset theme="cs-desktop">
<normaloff>.</normaloff>.</iconset>
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</item>
<item row="14" column="2">
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item> <item>
<widget class="QPushButton" name="iconClearBtn"> <widget class="QLabel" name="borderlessChkLbl">
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>30</width>
<height>50</height>
</size>
</property>
<property name="text"> <property name="text">
<string notr="true"/> <string>Hide window borders for maximized windows</string>
</property>
<property name="icon">
<iconset theme="edit-clear">
<normaloff>.</normaloff>.</iconset>
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</item>
<item row="3" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item> <item>
<spacer name="horizontalSpacer_8"> <spacer name="horizontalSpacer_3">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -407,29 +456,17 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QLabel" name="iconLbl">
<property name="text">
<string>Icon:</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item row="7" column="1"> <item row="2" column="2">
<widget class="QRadioButton" name="backRadioBtn"> <spacer name="verticalSpacer_6">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item row="9" column="2">
<spacer name="verticalSpacer_4">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
@ -444,21 +481,32 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="5" column="2"> <item row="1" column="2">
<spacer name="verticalSpacer_5"> <layout class="QHBoxLayout" name="horizontalLayout_9">
<property name="orientation"> <item>
<enum>Qt::Vertical</enum> <widget class="QComboBox" name="layoutsCmb">
</property> <property name="minimumSize">
<property name="sizeType"> <size>
<enum>QSizePolicy::Fixed</enum> <width>320</width>
</property> <height>0</height>
<property name="sizeHint" stdset="0"> </size>
<size> </property>
<width>20</width> </widget>
<height>10</height> </item>
</size> <item>
</property> <spacer name="horizontalSpacer_12">
</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>
</layout> </layout>
</item> </item>

Loading…
Cancel
Save