14
0

Accepting request 883909 from home:bnavigator:branches:devel:languages:python

- 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
This commit is contained in:
2021-04-09 09:22:46 +00:00
committed by Git OBS Bridge
parent be8cf0e39f
commit 94f8d247ba
5 changed files with 75 additions and 25 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc2f8d2b3644ed660c1267cba314df80a08ddaf28c1b7f701f6cdd6f44f70fdb
size 7883937

3
QDarkStyle-3.0.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a0c13508d2bf0f4919abb9cb5e4c3c8daa768b5da7232af313aeb194d3a61a2f
size 8330772

View File

@@ -0,0 +1,25 @@
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()

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Thu Apr 8 19:36:26 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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
-------------------------------------------------------------------
Wed Dec 23 22:53:30 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-QDarkStyle
# spec file for package python-QDarkStyle-test
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -28,26 +28,24 @@
%define skip_python2 1
%define X_display ":98"
Name: python-QDarkStyle%{psuffix}
Version: 2.8.1
Version: 3.0.2
Release: 0
Summary: A dark stylesheet for Python and Qt applications
License: MIT
Group: Development/Languages/Python
URL: https://github.com/ColinDuquesnoy/QDarkStyleSheet
Source: https://github.com/ColinDuquesnoy/QDarkStyleSheet/archive/v%{version}.tar.gz#/QDarkStyle-%{version}.tar.gz
#PATCH-FIX-UPSTREAM QDarkStyle-issue275-pyside2.patch -- gh#ColinDuquesnoy/QDarkStyleSheet#275
Patch0: https://github.com/ColinDuquesnoy/QDarkStyleSheet/commit/67fe9c1.patch#/QDarkStyle-issue275-pyside2.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-QtPy >= 1.9
Requires: python-helpdev >= 0.6.10
Requires: python-setuptools
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module QDarkStyle = %{version}}
BuildRequires: %{python_module QtPy >= 1.9}
BuildRequires: %{python_module helpdev >= 0.6.10}
BuildRequires: %{python_module pytest-qt}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module qt5-devel}
# pyside2 is for primary python3 flavor only
BuildRequires: python3-pyside2
@@ -59,35 +57,35 @@ BuildRequires: xvfb-run
QDarkStyle is a dark stylesheet for Python and Qt applications.
%prep
%setup -q -n QDarkStyleSheet-%{version}
sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/utils/*.py
%autosetup -p1 -n QDarkStyleSheet-%{version}
sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/*/*.py
%build
%if !%{with test}
%python_build
%endif
%if %{with test}
%check
export LANG=C.UTF-8
export PYTHONDONTWRITEBYTECODE=1
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python example/example.py --qt_from=pyqt5 --test
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python example/example.py --qt_from=pyqt5 --test --no_dark
# pyside2 is for primary python3 flavor only
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python3 example/example.py --qt_from=pyside2 --test
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python3 example/example.py --qt_from=pyside2 --test --no_dark
%endif
%install
%if !%{with test}
%python_install
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle.example
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle.utils
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
export LANG=C.UTF-8
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python -B -m qdarkstyle.example --qt_from=pyqt5 --test
# pyside2 is for primary python3 flavor only
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python3 -B -m qdarkstyle.example --qt_from=pyside2 --test
# no qtsass compiler (extras_require 'develop')
#%%pytest
%endif
%post
%python_install_alternative qdarkstyle
%python_install_alternative qdarkstyle qdarkstyle.example qdarkstyle.utils
%postun
%python_uninstall_alternative qdarkstyle
@@ -97,6 +95,8 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python3 example/example.py --
%doc AUTHORS.rst CHANGES.rst README.rst
%license LICENSE.rst
%python_alternative %{_bindir}/qdarkstyle
%python_alternative %{_bindir}/qdarkstyle.example
%python_alternative %{_bindir}/qdarkstyle.utils
%{python_sitelib}/qdarkstyle
%{python_sitelib}/QDarkStyle-%{version}*-info
%endif