Improve layouts of settings pages
Especially prevent certain elements from expanding (the additional space between the elements looks weird).
This commit is contained in:
parent
2d704cf765
commit
addba5a87c
|
@ -2,6 +2,12 @@
|
|||
<ui version="4.0">
|
||||
<class>Plasmoid::AppearanceOptionPage</class>
|
||||
<widget class="QWidget" name="Plasmoid::AppearanceOptionPage">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Appearance</string>
|
||||
</property>
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
<ui version="4.0">
|
||||
<class>QtGui::AppearanceOptionPage</class>
|
||||
<widget class="QWidget" name="QtGui::AppearanceOptionPage">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Appearance</string>
|
||||
</property>
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
<ui version="4.0">
|
||||
<class>QtGui::AutostartOptionPage</class>
|
||||
<widget class="QWidget" name="QtGui::AutostartOptionPage">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Autostart</string>
|
||||
</property>
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
<ui version="4.0">
|
||||
<class>QtGui::ConnectionOptionPage</class>
|
||||
<widget class="QWidget" name="QtGui::ConnectionOptionPage">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Connection</string>
|
||||
</property>
|
||||
|
@ -75,7 +81,8 @@
|
|||
<string>Move currently selected configuration down</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-down"/>
|
||||
<iconset theme="go-down">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -91,7 +98,8 @@
|
|||
<string>Move currently selected configuration up</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="go-up"/>
|
||||
<iconset theme="go-up">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -448,17 +456,17 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QtUtilities::ClearLineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">qtutilities/widgets/clearlineedit.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QtUtilities::PathSelection</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">qtutilities/widgets/pathselection.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QtUtilities::ClearLineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">qtutilities/widgets/clearlineedit.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../resources/syncthingwidgetsicons.qrc"/>
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
<ui version="4.0">
|
||||
<class>QtGui::IconsOptionPage</class>
|
||||
<widget class="QWidget" name="QtGui::IconsOptionPage">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Icons</string>
|
||||
</property>
|
||||
|
@ -11,10 +17,21 @@
|
|||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="contextLabel"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="contextCheckBox"/>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,0">
|
||||
<item>
|
||||
<widget class="QLabel" name="contextLabel">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="contextCheckBox"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="dragAndDropInfoLabel">
|
||||
|
@ -115,7 +132,8 @@
|
|||
<string>Use preset</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="color-profile"/>
|
||||
<iconset theme="color-profile">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -180,17 +180,17 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QtUtilities::ClearLineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">qtutilities/widgets/clearlineedit.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QtUtilities::PathSelection</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">qtutilities/widgets/pathselection.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QtUtilities::ClearLineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header location="global">qtutilities/widgets/clearlineedit.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QtUtilities::ClearPlainTextEdit</class>
|
||||
<extends>QPlainTextEdit</extends>
|
||||
|
|
|
@ -37,6 +37,12 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="systemdFormWidget" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<property name="leftMargin">
|
||||
<number>30</number>
|
||||
|
@ -66,6 +72,13 @@
|
|||
<item row="0" column="1">
|
||||
<widget class="QtUtilities::ClearLineEdit" name="syncthingUnitLineEdit"/>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="systemUnitCheckBox">
|
||||
<property name="text">
|
||||
<string>System unit</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="descriptionLabel">
|
||||
<property name="sizePolicy">
|
||||
|
@ -74,12 +87,6 @@
|
|||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Description</string>
|
||||
</property>
|
||||
|
@ -89,12 +96,6 @@
|
|||
<layout class="QHBoxLayout" name="descriptionHorizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="descriptionValueLabel">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
|
@ -286,13 +287,6 @@
|
|||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="systemUnitCheckBox">
|
||||
<property name="text">
|
||||
<string>System unit</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
<ui version="4.0">
|
||||
<class>QtGui::WebViewOptionPage</class>
|
||||
<widget class="QWidget" name="QtGui::WebViewOptionPage">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>General</string>
|
||||
</property>
|
||||
|
|
Loading…
Reference in New Issue