Qt5 issue

This commit is contained in:
triplus 2019-05-26 21:32:49 +02:00 committed by GitHub
parent 02c4d74a79
commit 86c08658de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,11 +90,11 @@ def onOrientationChanged():
if tb.orientation() == QtCore.Qt.Orientation.Horizontal:
for b in tb.findChildren(QtGui.QToolButton):
b.setProperty("toolbar_orientation", "horizontal")
b.style().polish(b)
# b.style().polish(b)
else:
for b in tb.findChildren(QtGui.QToolButton):
b.setProperty("toolbar_orientation", "vertical")
b.style().polish(b)
# b.style().polish(b)
def onStyle():