Skip to content

Commit

Permalink
Fix fully collapsable widgets
Browse files Browse the repository at this point in the history
Disabled fully collapsing widgets by setting every QSplitters childrenCollapsible property to false.

Re #2167
  • Loading branch information
Henrik Koski committed Aug 10, 2023
1 parent af55312 commit a5b9667
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions spinetoolbox/ui/array_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def setupUi(self, Form):
self.splitter = QSplitter(Form)
self.splitter.setObjectName(u"splitter")
self.splitter.setOrientation(Qt.Horizontal)
self.splitter.setChildrenCollapsible(False)
self.verticalLayoutWidget = QWidget(self.splitter)
self.verticalLayoutWidget.setObjectName(u"verticalLayoutWidget")
self.verticalLayout_3 = QVBoxLayout(self.verticalLayoutWidget)
Expand Down
3 changes: 3 additions & 0 deletions spinetoolbox/ui/array_editor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QWidget" name="verticalLayoutWidget">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
Expand Down
1 change: 1 addition & 0 deletions spinetoolbox/ui/mini_kernel_editor_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def setupUi(self, Dialog):
self.splitter = QSplitter(Dialog)
self.splitter.setObjectName(u"splitter")
self.splitter.setOrientation(Qt.Vertical)
self.splitter.setChildrenCollapsible(False)
self.widget = QWidget(self.splitter)
self.widget.setObjectName(u"widget")
self.verticalLayout = QVBoxLayout(self.widget)
Expand Down
3 changes: 3 additions & 0 deletions spinetoolbox/ui/mini_kernel_editor_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QWidget" name="">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
Expand Down
1 change: 1 addition & 0 deletions spinetoolbox/ui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def setupUi(self, SettingsForm):
self.splitter = QSplitter(SettingsForm)
self.splitter.setObjectName(u"splitter")
self.splitter.setOrientation(Qt.Horizontal)
self.splitter.setChildrenCollapsible(False)
self.listWidget = QListWidget(self.splitter)
icon = QIcon()
icon.addFile(u":/icons/sliders-h.svg", QSize(), QIcon.Normal, QIcon.Off)
Expand Down
3 changes: 3 additions & 0 deletions spinetoolbox/ui/settings.ui
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QListWidget" name="listWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
Expand Down
1 change: 1 addition & 0 deletions spinetoolbox/ui/time_series_fixed_resolution_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def setupUi(self, TimeSeriesFixedResolutionEditor):
self.verticalLayout = QVBoxLayout(TimeSeriesFixedResolutionEditor)
self.verticalLayout.setObjectName(u"verticalLayout")
self.splitter = QSplitter(TimeSeriesFixedResolutionEditor)
self.splitter.setChildrenCollapsible(False)
self.splitter.setObjectName(u"splitter")
self.splitter.setOrientation(Qt.Horizontal)
self.verticalLayoutWidget = QWidget(self.splitter)
Expand Down
3 changes: 3 additions & 0 deletions spinetoolbox/ui/time_series_fixed_resolution_editor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QWidget" name="verticalLayoutWidget">
<layout class="QVBoxLayout" name="left_layout">
<item>
Expand Down
1 change: 1 addition & 0 deletions spinetoolbox/ui/time_series_variable_resolution_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def setupUi(self, TimeSeriesVariableResolutionEditor):
self.splitter = QSplitter(TimeSeriesVariableResolutionEditor)
self.splitter.setObjectName(u"splitter")
self.splitter.setOrientation(Qt.Horizontal)
self.splitter.setChildrenCollapsible(False)
self.verticalLayoutWidget = QWidget(self.splitter)
self.verticalLayoutWidget.setObjectName(u"verticalLayoutWidget")
self.left_layout = QVBoxLayout(self.verticalLayoutWidget)
Expand Down
3 changes: 3 additions & 0 deletions spinetoolbox/ui/time_series_variable_resolution_editor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
</property>
<widget class="QWidget" name="verticalLayoutWidget">
<layout class="QVBoxLayout" name="left_layout">
<item>
Expand Down

0 comments on commit a5b9667

Please sign in to comment.