1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-12-30 18:51:19 +01:00

refactor: move to qthemes 1.1.2

This commit is contained in:
2025-08-28 12:53:06 +02:00
committed by wyzula-jan
parent 8fd091ab44
commit 7c9ba024bc
2 changed files with 2 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ classifiers = [
dependencies = [
"bec_ipython_client~=3.52", # needed for jupyter console
"bec_lib~=3.52",
"bec_qthemes~=1.0, >=1.1.1",
"bec_qthemes~=1.0, >=1.1.2",
"black~=25.0", # needed for bw-generate-cli
"isort~=5.13, >=5.13.2", # needed for bw-generate-cli
"pydantic~=2.0",

View File

@@ -26,8 +26,7 @@ def pytest_runtest_makereport(item, call):
@pytest.fixture(autouse=True)
def qapplication(qtbot, request, testable_qtimer_class): # pylint: disable=unused-argument
qapp = QApplication.instance()
if not hasattr(qapp, "theme"):
apply_theme("light")
apply_theme("light")
qapp.processEvents()
yield
@@ -41,7 +40,6 @@ def qapplication(qtbot, request, testable_qtimer_class): # pylint: disable=unus
bec_dispatcher.stop_cli_server()
testable_qtimer_class.check_all_stopped(qtbot)
qapp = QApplication.instance()
qapp.processEvents()
if hasattr(qapp, "os_listener") and qapp.os_listener:
qapp.removeEventFilter(qapp.os_listener)