Added minimal size for widgets. Splitter childrens are not collapsible

preferencesAboutTextFull
Claudio Valerio 11 years ago
parent edea89c18c
commit d36616339f
  1. 376
      resources/forms/documents.ui

@ -40,189 +40,207 @@
<property name="lineWidth"> <property name="lineWidth">
<number>0</number> <number>0</number>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QVBoxLayout" name="verticalLayout_4">
<item> <item>
<widget class="QFrame" name="topLeftFrame"> <widget class="QSplitter" name="splitter">
<property name="sizePolicy"> <property name="orientation">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <enum>Qt::Horizontal</enum>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="frameShape"> <property name="childrenCollapsible">
<enum>QFrame::Panel</enum> <bool>false</bool>
</property> </property>
<property name="frameShadow"> <widget class="QFrame" name="topLeftFrame">
<enum>QFrame::Plain</enum> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<layout class="QVBoxLayout" name="verticalLayout_2"> <horstretch>0</horstretch>
<property name="spacing"> <verstretch>0</verstretch>
<number>0</number> </sizepolicy>
</property> </property>
<property name="margin"> <property name="frameShape">
<number>0</number> <enum>QFrame::Panel</enum>
</property> </property>
<item> <property name="frameShadow">
<widget class="UBDocumentTreeWidget" name="documentTreeWidget"> <enum>QFrame::Plain</enum>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Maximum" vsizetype="Expanding"> <layout class="QVBoxLayout" name="verticalLayout_2">
<horstretch>0</horstretch> <property name="spacing">
<verstretch>0</verstretch> <number>0</number>
</sizepolicy> </property>
</property> <property name="margin">
<property name="styleSheet"> <number>0</number>
<string notr="true"/> </property>
</property> <item>
<property name="frameShape"> <widget class="UBDocumentTreeWidget" name="documentTreeWidget">
<enum>QFrame::NoFrame</enum> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<property name="frameShadow"> <horstretch>0</horstretch>
<enum>QFrame::Plain</enum> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="lineWidth"> </property>
<number>1</number> <property name="minimumSize">
</property> <size>
<property name="horizontalScrollMode"> <width>250</width>
<enum>QAbstractItemView::ScrollPerPixel</enum> <height>0</height>
</property> </size>
<property name="autoExpandDelay"> </property>
<number>2</number> <property name="styleSheet">
</property> <string notr="true"/>
<property name="headerHidden"> </property>
<bool>true</bool> <property name="frameShape">
</property> <enum>QFrame::NoFrame</enum>
<attribute name="headerVisible"> </property>
<bool>false</bool> <property name="frameShadow">
</attribute> <enum>QFrame::Plain</enum>
<column> </property>
<property name="text"> <property name="lineWidth">
<string notr="true">1</string> <number>1</number>
</property> </property>
</column> <property name="horizontalScrollMode">
</widget> <enum>QAbstractItemView::ScrollPerPixel</enum>
</item> </property>
</layout> <property name="autoExpandDelay">
</widget> <number>2</number>
</item> </property>
<item> <property name="headerHidden">
<widget class="QWidget" name="topRightFrame" native="true"> <bool>true</bool>
<property name="styleSheet"> </property>
<string notr="true"/> <attribute name="headerVisible">
</property> <bool>false</bool>
<layout class="QVBoxLayout" name="verticalLayout_3"> </attribute>
<property name="margin"> <column>
<number>0</number> <property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="topRightFrame" native="true">
<property name="styleSheet">
<string notr="true"/>
</property> </property>
<item> <layout class="QVBoxLayout" name="verticalLayout_3">
<widget class="UBDocumentThumbnailWidget" name="thumbnailWidget"> <property name="margin">
<property name="contextMenuPolicy"> <number>0</number>
<enum>Qt::NoContextMenu</enum> </property>
</property> <item>
<property name="styleSheet"> <widget class="UBDocumentThumbnailWidget" name="thumbnailWidget">
<string notr="true"/> <property name="minimumSize">
</property> <size>
<property name="frameShape"> <width>250</width>
<enum>QFrame::NoFrame</enum> <height>0</height>
</property> </size>
<property name="frameShadow"> </property>
<enum>QFrame::Plain</enum> <property name="contextMenuPolicy">
</property> <enum>Qt::NoContextMenu</enum>
<property name="lineWidth"> </property>
<number>1</number> <property name="styleSheet">
</property> <string notr="true"/>
<property name="verticalScrollBarPolicy"> </property>
<enum>Qt::ScrollBarAsNeeded</enum> <property name="frameShape">
</property> <enum>QFrame::NoFrame</enum>
<property name="horizontalScrollBarPolicy"> </property>
<enum>Qt::ScrollBarAlwaysOff</enum> <property name="frameShadow">
</property> <enum>QFrame::Plain</enum>
<property name="dragMode"> </property>
<enum>QGraphicsView::NoDrag</enum> <property name="lineWidth">
</property> <number>1</number>
</widget> </property>
</item> <property name="verticalScrollBarPolicy">
<item> <enum>Qt::ScrollBarAsNeeded</enum>
<widget class="QWidget" name="bottomRightFrame" native="true"> </property>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <property name="horizontalScrollBarPolicy">
<property name="spacing"> <enum>Qt::ScrollBarAlwaysOff</enum>
<number>0</number> </property>
</property> <property name="dragMode">
<property name="margin"> <enum>QGraphicsView::NoDrag</enum>
<number>0</number> </property>
</property> </widget>
<item> </item>
<spacer name="horizontalSpacer2"> <item>
<property name="orientation"> <widget class="QWidget" name="bottomRightFrame" native="true">
<enum>Qt::Horizontal</enum> <layout class="QHBoxLayout" name="horizontalLayout_2">
</property> <property name="spacing">
<property name="sizeHint" stdset="0"> <number>0</number>
<size> </property>
<width>300</width> <property name="margin">
<height>20</height> <number>0</number>
</size> </property>
</property> <item>
</spacer> <spacer name="horizontalSpacer2">
</item> <property name="orientation">
<item> <enum>Qt::Horizontal</enum>
<widget class="QSlider" name="documentZoomSlider"> </property>
<property name="sizePolicy"> <property name="sizeHint" stdset="0">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <size>
<horstretch>0</horstretch> <width>300</width>
<verstretch>0</verstretch> <height>20</height>
</sizepolicy> </size>
</property> </property>
<property name="minimumSize"> </spacer>
<size> </item>
<width>150</width> <item>
<height>0</height> <widget class="QSlider" name="documentZoomSlider">
</size> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<property name="styleSheet"> <horstretch>0</horstretch>
<string notr="true"/> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="minimum"> </property>
<number>50</number> <property name="minimumSize">
</property> <size>
<property name="maximum"> <width>150</width>
<number>500</number> <height>0</height>
</property> </size>
<property name="singleStep"> </property>
<number>10</number> <property name="styleSheet">
</property> <string notr="true"/>
<property name="value"> </property>
<number>150</number> <property name="minimum">
</property> <number>50</number>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> <property name="maximum">
</property> <number>500</number>
<property name="invertedAppearance"> </property>
<bool>false</bool> <property name="singleStep">
</property> <number>10</number>
<property name="invertedControls"> </property>
<bool>false</bool> <property name="value">
</property> <number>150</number>
</widget> </property>
</item> <property name="orientation">
<item> <enum>Qt::Horizontal</enum>
<spacer name="horizontalSpacer1"> </property>
<property name="orientation"> <property name="invertedAppearance">
<enum>Qt::Horizontal</enum> <bool>false</bool>
</property> </property>
<property name="sizeType"> <property name="invertedControls">
<enum>QSizePolicy::Maximum</enum> <bool>false</bool>
</property> </property>
<property name="sizeHint" stdset="0"> </widget>
<size> </item>
<width>40</width> <item>
<height>20</height> <spacer name="horizontalSpacer1">
</size> <property name="orientation">
</property> <enum>Qt::Horizontal</enum>
</spacer> </property>
</item> <property name="sizeType">
</layout> <enum>QSizePolicy::Maximum</enum>
</widget> </property>
</item> <property name="sizeHint" stdset="0">
</layout> <size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -243,8 +261,6 @@
<header>gui/UBDocumentTreeWidget.h</header> <header>gui/UBDocumentTreeWidget.h</header>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources> <resources/>
<include location="../OpenBoard.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>

Loading…
Cancel
Save