Commit d3661633 authored by Claudio Valerio's avatar Claudio Valerio

Added minimal size for widgets. Splitter childrens are not collapsible

parent edea89c1
...@@ -40,8 +40,15 @@ ...@@ -40,8 +40,15 @@
<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="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QFrame" name="topLeftFrame"> <widget class="QFrame" name="topLeftFrame">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
...@@ -65,11 +72,17 @@ ...@@ -65,11 +72,17 @@
<item> <item>
<widget class="UBDocumentTreeWidget" name="documentTreeWidget"> <widget class="UBDocumentTreeWidget" name="documentTreeWidget">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Expanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>250</width>
<height>0</height>
</size>
</property>
<property name="styleSheet"> <property name="styleSheet">
<string notr="true"/> <string notr="true"/>
</property> </property>
...@@ -103,8 +116,6 @@ ...@@ -103,8 +116,6 @@
</item> </item>
</layout> </layout>
</widget> </widget>
</item>
<item>
<widget class="QWidget" name="topRightFrame" native="true"> <widget class="QWidget" name="topRightFrame" native="true">
<property name="styleSheet"> <property name="styleSheet">
<string notr="true"/> <string notr="true"/>
...@@ -115,6 +126,12 @@ ...@@ -115,6 +126,12 @@
</property> </property>
<item> <item>
<widget class="UBDocumentThumbnailWidget" name="thumbnailWidget"> <widget class="UBDocumentThumbnailWidget" name="thumbnailWidget">
<property name="minimumSize">
<size>
<width>250</width>
<height>0</height>
</size>
</property>
<property name="contextMenuPolicy"> <property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum> <enum>Qt::NoContextMenu</enum>
</property> </property>
...@@ -224,6 +241,7 @@ ...@@ -224,6 +241,7 @@
</item> </item>
</layout> </layout>
</widget> </widget>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>
...@@ -243,8 +261,6 @@ ...@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment