diff options
author | J-P Nurmi <jpnurmi@gmail.com> | 2018-11-17 01:02:34 +0300 |
---|---|---|
committer | J-P Nurmi <jpnurmi@gmail.com> | 2018-11-17 11:22:52 +0300 |
commit | 847706432ba8be608b89d482995806b2e480fa9c (patch) | |
tree | 0f41d65e4a2a371a2dfb55a1f421f050bd8025ac /src/gui/sharelinkwidget.ui | |
parent | bd93489b146c32f97e1726e8616d2a86b2ae535a (diff) |
ShareLinkWidget: redo the layout
NOTE: The progress indicator is temporarily moved one line up to avoid
inserting it on its own line, which would cause the content pushed down
and the dialog size jump back and forth.
Diffstat (limited to 'src/gui/sharelinkwidget.ui')
-rw-r--r-- | src/gui/sharelinkwidget.ui | 505 |
1 files changed, 135 insertions, 370 deletions
diff --git a/src/gui/sharelinkwidget.ui b/src/gui/sharelinkwidget.ui index 64d0fd594..8affe169a 100644 --- a/src/gui/sharelinkwidget.ui +++ b/src/gui/sharelinkwidget.ui @@ -11,33 +11,12 @@ </rect> </property> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>350</width> - <height>110</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="windowTitle"> - <string>Share NewDocument.odt</string> - </property> - <layout class="QVBoxLayout" name="verticalLayout"> - <property name="spacing"> - <number>10</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetFixedSize</enum> - </property> + <layout class="QGridLayout" name="gridLayout"> <property name="leftMargin"> <number>0</number> </property> @@ -50,375 +29,162 @@ <property name="bottomMargin"> <number>0</number> </property> - <item> - <widget class="QWidget" name="shareLinkWidget" native="true"> + <item row="0" column="0" colspan="3"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="createShareButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="styleSheet"> + <string notr="true">text-align: left</string> + </property> + <property name="text"> + <string>&Share link</string> + </property> + <property name="icon"> + <iconset resource="../../client.qrc"> + <normaloff>:/client/resources/public.svg</normaloff>:/client/resources/public.svg</iconset> + </property> + <property name="flat"> + <bool>true</bool> + </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>25</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QProgressIndicator" name="progressIndicator"/> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>25</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QCheckBox" name="enableShareLink"> + <property name="text"> + <string>Enable</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="0" column="3"> + <widget class="QToolButton" name="shareLinkToolButton"> <property name="enabled"> - <bool>true</bool> + <bool>false</bool> + </property> + <property name="icon"> + <iconset resource="../../client.qrc"> + <normaloff>:/client/resources/more.svg</normaloff>:/client/resources/more.svg</iconset> </property> + <property name="popupMode"> + <enum>QToolButton::InstantPopup</enum> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="passwordLabel"> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>350</width> - <height>0</height> - </size> + <property name="text"> + <string>Password:</string> + </property> + <property name="indent"> + <number>20</number> </property> - <layout class="QHBoxLayout" name="shareLinkLayout"> - <property name="spacing"> - <number>3</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetFixedSize</enum> - </property> - <property name="leftMargin"> - <number>0</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QPushButton" name="createShareButton"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>242</width> - <height>26</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>350</width> - <height>26</height> - </size> - </property> - <property name="layoutDirection"> - <enum>Qt::LeftToRight</enum> - </property> - <property name="autoFillBackground"> - <bool>false</bool> - </property> - <property name="styleSheet"> - <string notr="true">text-align: left</string> - </property> - <property name="text"> - <string>&Share link</string> - </property> - <property name="icon"> - <iconset resource="../../client.qrc"> - <normaloff>:/client/resources/public.svg</normaloff>:/client/resources/public.svg</iconset> - </property> - <property name="checkable"> - <bool>false</bool> - </property> - <property name="flat"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QCheckBox" name="enableShareLink"> - <property name="minimumSize"> - <size> - <width>82</width> - <height>26</height> - </size> - </property> - <property name="text"> - <string>Enable</string> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="shareLinkToolButton"> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="minimumSize"> - <size> - <width>26</width> - <height>26</height> - </size> - </property> - <property name="contextMenuPolicy"> - <enum>Qt::ActionsContextMenu</enum> - </property> - <property name="styleSheet"> - <string notr="true"/> - </property> - <property name="text"> - <string/> - </property> - <property name="icon"> - <iconset resource="../../client.qrc"> - <normaloff>:/client/resources/more.svg</normaloff>:/client/resources/more.svg</iconset> - </property> - <property name="popupMode"> - <enum>QToolButton::InstantPopup</enum> - </property> - <property name="toolButtonStyle"> - <enum>Qt::ToolButtonIconOnly</enum> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> - <widget class="QWidget" name="indicatorWidget" native="true"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="leftMargin"> - <number>0</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - </layout> </widget> </item> - <item> - <widget class="QWidget" name="passwordShareProperty" native="true"> + <item row="1" column="1"> + <widget class="QLineEdit" name="lineEdit_password"> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Maximum"> - <horstretch>0</horstretch> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>300</width> - <height>0</height> - </size> + <property name="echoMode"> + <enum>QLineEdit::Password</enum> </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> + </widget> + </item> + <item row="1" column="2"> + <widget class="QToolButton" name="confirmPassword"> + <property name="icon"> + <iconset resource="../../client.qrc"> + <normaloff>:/client/resources/confirm.svg</normaloff>:/client/resources/confirm.svg</iconset> + </property> + <property name="autoRaise"> + <bool>true</bool> </property> - <layout class="QHBoxLayout" name="passwordHorizontalLayout"> - <property name="spacing"> - <number>0</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetFixedSize</enum> - </property> - <property name="leftMargin"> - <number>18</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="label"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>162</width> - <height>0</height> - </size> - </property> - <property name="text"> - <string>Password:</string> - </property> - <property name="indent"> - <number>0</number> - </property> - </widget> - </item> - <item> - <widget class="QLineEdit" name="lineEdit_password"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>120</width> - <height>26</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>100</width> - <height>16777215</height> - </size> - </property> - <property name="echoMode"> - <enum>QLineEdit::Password</enum> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="confirmPassword"> - <property name="icon"> - <iconset resource="../../client.qrc"> - <normaloff>:/client/resources/confirm.svg</normaloff>:/client/resources/confirm.svg</iconset> - </property> - <property name="autoRaise"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> </widget> </item> - <item> - <widget class="QWidget" name="expirationShareProperty" native="true"> + <item row="2" column="0"> + <widget class="QLabel" name="expirationLabel"> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>300</width> - <height>0</height> - </size> + <property name="text"> + <string>Expiration date:</string> + </property> + <property name="indent"> + <number>20</number> </property> - <layout class="QHBoxLayout" name="expirationShareLayout" stretch="0,0,0"> - <property name="spacing"> - <number>0</number> - </property> - <property name="sizeConstraint"> - <enum>QLayout::SetFixedSize</enum> - </property> - <property name="leftMargin"> - <number>18</number> - </property> - <property name="topMargin"> - <number>0</number> - </property> - <property name="rightMargin"> - <number>0</number> - </property> - <property name="bottomMargin"> - <number>0</number> - </property> - <item> - <widget class="QLabel" name="expirationLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>162</width> - <height>26</height> - </size> - </property> - <property name="text"> - <string>Expiration date:</string> - </property> - <property name="indent"> - <number>0</number> - </property> - </widget> - </item> - <item> - <widget class="QDateEdit" name="calendar"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>120</width> - <height>26</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> - </property> - <property name="calendarPopup"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QToolButton" name="confirmExpirationDate"> - <property name="icon"> - <iconset resource="../../client.qrc"> - <normaloff>:/client/resources/confirm.svg</normaloff>:/client/resources/confirm.svg</iconset> - </property> - <property name="autoRaise"> - <bool>true</bool> - </property> - </widget> - </item> - </layout> </widget> </item> - <item> - <widget class="QLabel" name="errorLabel"> + <item row="2" column="1"> + <widget class="QDateEdit" name="calendar"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Fixed"> - <horstretch>0</horstretch> + <horstretch>1</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> + </widget> + </item> + <item row="2" column="2"> + <widget class="QToolButton" name="confirmExpirationDate"> + <property name="icon"> + <iconset resource="../../client.qrc"> + <normaloff>:/client/resources/confirm.svg</normaloff>:/client/resources/confirm.svg</iconset> </property> - <property name="maximumSize"> - <size> - <width>16777215</width> - <height>16777215</height> - </size> + <property name="autoRaise"> + <bool>true</bool> </property> + </widget> + </item> + <item row="3" column="0" colspan="4"> + <widget class="QLabel" name="errorLabel"> <property name="palette"> <palette> <active> @@ -462,23 +228,22 @@ <property name="textFormat"> <enum>Qt::PlainText</enum> </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> <property name="wordWrap"> <bool>true</bool> </property> - <property name="margin"> - <number>0</number> - </property> - <property name="indent"> - <number>0</number> - </property> </widget> </item> </layout> </widget> <layoutdefault spacing="6" margin="11"/> + <customwidgets> + <customwidget> + <class>QProgressIndicator</class> + <extends>QWidget</extends> + <header>QProgressIndicator.h</header> + <container>1</container> + </customwidget> + </customwidgets> <resources> <include location="../../client.qrc"/> </resources> |