Merge pull request #689 from luk1337/luk/splitter

Adjust QSplitter style
This commit is contained in:
Daniel Wróbel 2024-09-28 20:54:06 +02:00 committed by GitHub
commit 91b40db0ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -1510,6 +1510,8 @@ class MainWindow(QtWidgets.QMainWindow):
if isMacOS(): window.userlistLayout.setContentsMargins(3, 0, 3, 0)
window.listSplit = QtWidgets.QSplitter(Qt.Vertical, self)
window.listSplit.setHandleWidth(6)
window.listSplit.setStyle(QtWidgets.QStyleFactory.create("fusion"))
window.listSplit.addWidget(window.userlistFrame)
window.listLayout.addWidget(window.listSplit)
window.roomsCombobox = QtWidgets.QComboBox(self)
@ -1544,8 +1546,10 @@ class MainWindow(QtWidgets.QMainWindow):
window.topSplit.addWidget(window.outputFrame)
window.topSplit.addWidget(window.listFrame)
window.topSplit.setHandleWidth(6)
window.topSplit.setStretchFactor(0, 4)
window.topSplit.setStretchFactor(1, 5)
window.topSplit.setStyle(QtWidgets.QStyleFactory.create("fusion"))
window.mainLayout.addWidget(window.topSplit)
window.topSplit.setSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)