Don't manage button arrow

On Windows it can result in undesired styling (reported by saso). Decision to show/hide the arrow if left to the user/stylesheet.
This commit is contained in:
triplus 2017-02-25 15:35:21 +01:00 committed by wmayer
parent 441ce4a158
commit 2bc020d509

View File

@ -321,11 +321,9 @@ def onCompact():
"""Enable or disable compact mode.""" """Enable or disable compact mode."""
if aCompact.isChecked(): if aCompact.isChecked():
indicator.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly) indicator.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly)
indicator.setStyleSheet("QToolButton::menu-indicator {image: none}")
p.SetBool("Compact", 1) p.SetBool("Compact", 1)
else: else:
indicator.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon) indicator.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
indicator.setStyleSheet("QToolButton::menu-indicator {}")
p.SetBool("Compact", 0) p.SetBool("Compact", 0)