Skip to content

Commit 936d820

Browse files
committed
always show vertical scrollbars in module list
1 parent 8eefcb8 commit 936d820

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

pyobs_gui/qt/mainwindow.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Form implementation generated from reading ui file 'mainwindow.ui'
44
#
5-
# Created by: PyQt5 UI code generator 5.15.6
5+
# Created by: PyQt5 UI code generator 5.15.7
66
#
77
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
88
# run again. Do not edit this file unless you know what you are doing.
@@ -117,9 +117,10 @@ def setupUi(self, MainWindow):
117117
sizePolicy.setVerticalStretch(0)
118118
sizePolicy.setHeightForWidth(self.listPages.sizePolicy().hasHeightForWidth())
119119
self.listPages.setSizePolicy(sizePolicy)
120-
self.listPages.setMinimumSize(QtCore.QSize(84, 84))
121-
self.listPages.setMaximumSize(QtCore.QSize(84, 16777215))
120+
self.listPages.setMinimumSize(QtCore.QSize(90, 90))
121+
self.listPages.setMaximumSize(QtCore.QSize(90, 16777215))
122122
self.listPages.setFrameShape(QtWidgets.QFrame.NoFrame)
123+
self.listPages.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
123124
self.listPages.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
124125
self.listPages.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
125126
self.listPages.setProperty("showDropIndicator", False)

pyobs_gui/qt/mainwindow.ui

+6-3
Original file line numberDiff line numberDiff line change
@@ -278,19 +278,22 @@
278278
</property>
279279
<property name="minimumSize">
280280
<size>
281-
<width>84</width>
282-
<height>84</height>
281+
<width>90</width>
282+
<height>90</height>
283283
</size>
284284
</property>
285285
<property name="maximumSize">
286286
<size>
287-
<width>84</width>
287+
<width>90</width>
288288
<height>16777215</height>
289289
</size>
290290
</property>
291291
<property name="frameShape">
292292
<enum>QFrame::NoFrame</enum>
293293
</property>
294+
<property name="verticalScrollBarPolicy">
295+
<enum>Qt::ScrollBarAlwaysOn</enum>
296+
</property>
294297
<property name="horizontalScrollBarPolicy">
295298
<enum>Qt::ScrollBarAlwaysOff</enum>
296299
</property>

0 commit comments

Comments
 (0)