From 3b8cc7e2e4188794cb1bd285e7a61c2dbb0799d3 Mon Sep 17 00:00:00 2001
From: Henrik Koski <98282892+PiispaH@users.noreply.github.com>
Date: Thu, 10 Aug 2023 13:50:37 +0300
Subject: [PATCH] Fix fully collapsable widgets (#2244)
---
spinetoolbox/ui/array_editor.py | 1 +
spinetoolbox/ui/array_editor.ui | 3 +++
spinetoolbox/ui/mini_kernel_editor_dialog.py | 1 +
spinetoolbox/ui/mini_kernel_editor_dialog.ui | 3 +++
spinetoolbox/ui/settings.py | 1 +
spinetoolbox/ui/settings.ui | 3 +++
spinetoolbox/ui/time_series_fixed_resolution_editor.py | 1 +
spinetoolbox/ui/time_series_fixed_resolution_editor.ui | 3 +++
spinetoolbox/ui/time_series_variable_resolution_editor.py | 1 +
spinetoolbox/ui/time_series_variable_resolution_editor.ui | 3 +++
10 files changed, 20 insertions(+)
diff --git a/spinetoolbox/ui/array_editor.py b/spinetoolbox/ui/array_editor.py
index 3c5b97a0d..be8ece5af 100644
--- a/spinetoolbox/ui/array_editor.py
+++ b/spinetoolbox/ui/array_editor.py
@@ -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)
diff --git a/spinetoolbox/ui/array_editor.ui b/spinetoolbox/ui/array_editor.ui
index a21eec26f..92b9dd92a 100644
--- a/spinetoolbox/ui/array_editor.ui
+++ b/spinetoolbox/ui/array_editor.ui
@@ -31,6 +31,9 @@
Qt::Horizontal
+
+ false
+
-
diff --git a/spinetoolbox/ui/mini_kernel_editor_dialog.py b/spinetoolbox/ui/mini_kernel_editor_dialog.py
index 68e2020a3..16869fb17 100644
--- a/spinetoolbox/ui/mini_kernel_editor_dialog.py
+++ b/spinetoolbox/ui/mini_kernel_editor_dialog.py
@@ -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)
diff --git a/spinetoolbox/ui/mini_kernel_editor_dialog.ui b/spinetoolbox/ui/mini_kernel_editor_dialog.ui
index b8d9cba6d..75299a3c2 100644
--- a/spinetoolbox/ui/mini_kernel_editor_dialog.ui
+++ b/spinetoolbox/ui/mini_kernel_editor_dialog.ui
@@ -31,6 +31,9 @@
Qt::Vertical
+
+ false
+
-
diff --git a/spinetoolbox/ui/settings.py b/spinetoolbox/ui/settings.py
index 004f4956a..2312caceb 100644
--- a/spinetoolbox/ui/settings.py
+++ b/spinetoolbox/ui/settings.py
@@ -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)
diff --git a/spinetoolbox/ui/settings.ui b/spinetoolbox/ui/settings.ui
index 29624cd63..044e12796 100644
--- a/spinetoolbox/ui/settings.ui
+++ b/spinetoolbox/ui/settings.ui
@@ -64,6 +64,9 @@
Qt::Horizontal
+
+ false
+
diff --git a/spinetoolbox/ui/time_series_fixed_resolution_editor.py b/spinetoolbox/ui/time_series_fixed_resolution_editor.py
index 218aae4d8..dd97a6d6c 100644
--- a/spinetoolbox/ui/time_series_fixed_resolution_editor.py
+++ b/spinetoolbox/ui/time_series_fixed_resolution_editor.py
@@ -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)
diff --git a/spinetoolbox/ui/time_series_fixed_resolution_editor.ui b/spinetoolbox/ui/time_series_fixed_resolution_editor.ui
index 5d26a8c2d..ffe80dce4 100644
--- a/spinetoolbox/ui/time_series_fixed_resolution_editor.ui
+++ b/spinetoolbox/ui/time_series_fixed_resolution_editor.ui
@@ -31,6 +31,9 @@
Qt::Horizontal
+
+ false
+
-
diff --git a/spinetoolbox/ui/time_series_variable_resolution_editor.py b/spinetoolbox/ui/time_series_variable_resolution_editor.py
index 6f3009bbc..f1447cb53 100644
--- a/spinetoolbox/ui/time_series_variable_resolution_editor.py
+++ b/spinetoolbox/ui/time_series_variable_resolution_editor.py
@@ -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)
diff --git a/spinetoolbox/ui/time_series_variable_resolution_editor.ui b/spinetoolbox/ui/time_series_variable_resolution_editor.ui
index 9c890de5d..2751fda00 100644
--- a/spinetoolbox/ui/time_series_variable_resolution_editor.ui
+++ b/spinetoolbox/ui/time_series_variable_resolution_editor.ui
@@ -31,6 +31,9 @@
Qt::Horizontal
+
+ false
+
-