From 334c64e5e61ee83b93aac4dcb4a2760b24b96437 Mon Sep 17 00:00:00 2001 From: zhiyiYo <1319158137@qq.com> Date: Sat, 1 Apr 2023 20:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20macOS=20=E4=B8=8B=20SpinBo?= =?UTF-8?q?x=20=E6=98=BE=E7=A4=BA=E7=84=A6=E7=82=B9=E6=A1=86=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qfluentwidgets/__init__.py | 2 +- qfluentwidgets/components/widgets/spin_box.py | 1 + setup.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qfluentwidgets/__init__.py b/qfluentwidgets/__init__.py index 121e001..a05505d 100644 --- a/qfluentwidgets/__init__.py +++ b/qfluentwidgets/__init__.py @@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma :license: GPLv3, see LICENSE for more details. """ -__version__ = "0.5.1" +__version__ = "0.5.2" from .components import * from .common import * diff --git a/qfluentwidgets/components/widgets/spin_box.py b/qfluentwidgets/components/widgets/spin_box.py index a43fca5..c7b43ed 100644 --- a/qfluentwidgets/components/widgets/spin_box.py +++ b/qfluentwidgets/components/widgets/spin_box.py @@ -69,6 +69,7 @@ class Ui_SpinBox: self.upButton.clicked.connect(self.stepUp) self.downButton.clicked.connect(self.stepDown) + self.setAttribute(Qt.WA_MacShowFocusRect, False) self.setContextMenuPolicy(Qt.CustomContextMenu) self.customContextMenuRequested.connect(self._showContextMenu) diff --git a/setup.py b/setup.py index 3cc4bb1..a5f907b 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f: setuptools.setup( name="PyQt-Fluent-Widgets", - version="0.5.1", + version="0.5.2", keywords="pyqt fluent widgets", author="zhiyiYo", author_email="shokokawaii@outlook.com", -- GitLab