Skip to content

Commit

Permalink
Adjust QSplitter style
Browse files Browse the repository at this point in the history
This looks much better when using PySide6 6.7.2.
  • Loading branch information
luk1337 committed Jul 15, 2024
1 parent 9450c98 commit 910033f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions syncplay/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ def mouseMoveEvent(self, event):
QtWidgets.QSplitterHandle.mouseMoveEvent(self, event)
self.parent().parent().parent().updateListGeometry()

def paintEvent(self, event):
pass

def needsClient(f): # @NoSelf
@wraps(f)
def wrapper(self, *args, **kwds):
Expand Down Expand Up @@ -1544,6 +1547,7 @@ def addTopLayout(self, window):

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.mainLayout.addWidget(window.topSplit)
Expand Down

0 comments on commit 910033f

Please sign in to comment.