forked from pool/python-QDarkStyle
- Update to version 3.0.2 * Enable the use of setTabColor and add example, fixes #212 * Update description to inform about Python 2 and Qt4 unsupported versions * Add missing examples #251 * Enhancement of state of active/non-active items in views #209 * Update manifest to include UI files * New structure to create different palettes #268, #164 * New light palette #240, #268 * Improved dark palette #252, #266, #264, #265, #248 * Improved tool buttons #260 * Improved tabs #270, #271, #267 * Improved combo boxes #263 * Improved close/float sizes os-dependent #267 * Fix checkbox problems #200, #259, #239 * Fix indicators' colors in menus and tables #242 * Fix dock widget tab hover #243 * Workaround for menus with indicators and icons #214 * Update to be compatible with Qt 5.[12,13,14,15] - add QDarkStyle-issue275-pyside2.patch gh#ColinDuquesnoy/QDarkStyleSheet#275 OBS-URL: https://build.opensuse.org/request/show/883909 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=13
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 67fe9c150965b66b205dd9a0b3c1666d43d74335 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Pizetta <daniel.pizetta@usp.br>
|
|
Date: Sun, 4 Apr 2021 10:54:25 -0300
|
|
Subject: [PATCH] Fix tristate enumerator, closes #275
|
|
|
|
---
|
|
qdarkstyle/example/__main__.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/qdarkstyle/example/__main__.py b/qdarkstyle/example/__main__.py
|
|
index c9a34fa5..b3d84e49 100644
|
|
--- a/qdarkstyle/example/__main__.py
|
|
+++ b/qdarkstyle/example/__main__.py
|
|
@@ -162,9 +162,9 @@ def main():
|
|
uic.loadUi(os.path.join(here, 'ui/dw_buttons.ui'), dw_buttons)
|
|
window.addDockWidget(QtCore.Qt.RightDockWidgetArea, dw_buttons)
|
|
|
|
- # Set state indeterminate (value=1)
|
|
+ # Set state indeterminate #275
|
|
dw_buttons.checkBoxTristate.stateChanged.connect(dw_buttons.checkBoxTristateDis.setCheckState)
|
|
- dw_buttons.checkBoxTristate.setCheckState(1)
|
|
+ dw_buttons.checkBoxTristate.setCheckState(QtCore.Qt.PartiallyChecked)
|
|
|
|
# Add actions on popup toolbuttons
|
|
menu = QtWidgets.QMenu()
|