diff --git a/qfluentwidgets/__init__.py b/qfluentwidgets/__init__.py index 121e001ce3f63a3da97be9a414ecea54e9f18ed7..a05505d6ccd78935148b2189c0cfb3d75fabaf02 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 a43fca52bcb2f9bf9d110db5b517a0b9cfcf0f50..c7b43ed54a21a81b037afb0b96dc1ee1331e8eb3 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 3cc4bb192b9bd553c9fa9e95fa48754d3f5a620e..a5f907b2b81eec0390d43a45bebdc73f77114979 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",