diff options
author | J-P Nurmi <jpnurmi@gmail.com> | 2018-11-16 23:23:50 +0300 |
---|---|---|
committer | J-P Nurmi <jpnurmi@gmail.com> | 2018-11-17 11:22:52 +0300 |
commit | bd93489b146c32f97e1726e8616d2a86b2ae535a (patch) | |
tree | 21e60943a89f823a9afb4970bb8a0760a6ad415c /src/gui/shareusergroupwidget.ui | |
parent | 96d0059ca4cd37a42b4c2722dcadcf0804ebc027 (diff) |
Cleanup shareusergroupwidget.ui
Remove hard-coded fixed sizes, size constraints, and other unnecessary
property assignments. This works with any dialog width, meaning that
the width can be defined in one place higher up in the widget hierachy.
Diffstat (limited to 'src/gui/shareusergroupwidget.ui')
-rw-r--r-- | src/gui/shareusergroupwidget.ui | 74 |
1 files changed, 4 insertions, 70 deletions
diff --git a/src/gui/shareusergroupwidget.ui b/src/gui/shareusergroupwidget.ui index 69a23d334..51682bb05 100644 --- a/src/gui/shareusergroupwidget.ui +++ b/src/gui/shareusergroupwidget.ui @@ -11,33 +11,15 @@ </rect> </property> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Minimum"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>350</width> - <height>55</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>350</width> - <height>16777215</height> - </size> - </property> - <property name="windowTitle"> - <string>Share NewDocument.odt</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout" stretch="0,0"> + <layout class="QVBoxLayout" name="verticalLayout"> <property name="spacing"> <number>0</number> </property> - <property name="sizeConstraint"> - <enum>QLayout::SetFixedSize</enum> - </property> <property name="leftMargin"> <number>0</number> </property> @@ -51,13 +33,7 @@ <number>0</number> </property> <item> - <layout class="QHBoxLayout" name="shareeHorizontalLayout" stretch="0,0"> - <property name="spacing"> - <number>0</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetFixedSize</enum> - </property> + <layout class="QHBoxLayout" name="shareeHorizontalLayout"> <property name="leftMargin"> <number>0</number> </property> @@ -72,27 +48,6 @@ </property> <item> <widget class="QLineEdit" name="shareeLineEdit"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Maximum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>332</width> - <height>26</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> <property name="placeholderText"> <string>Share with users or groups ...</string> </property> @@ -114,23 +69,11 @@ <item> <widget class="QLabel" name="errorLabel"> <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Maximum"> + <sizepolicy hsizetype="Ignored" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>350</width> - <height>26</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> <property name="palette"> <palette> <active> @@ -168,9 +111,6 @@ </disabled> </palette> </property> - <property name="lineWidth"> - <number>0</number> - </property> <property name="text"> <string notr="true">Placeholder for Error text</string> </property> @@ -180,12 +120,6 @@ <property name="wordWrap"> <bool>true</bool> </property> - <property name="margin"> - <number>0</number> - </property> - <property name="indent"> - <number>0</number> - </property> </widget> </item> </layout> |