提交 334c64e5 编写于 作者: 之一Yo's avatar 之一Yo

修复 macOS 下 SpinBox 显示焦点框的问题

上级 5f11da4a
...@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma ...@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
:license: GPLv3, see LICENSE for more details. :license: GPLv3, see LICENSE for more details.
""" """
__version__ = "0.5.1" __version__ = "0.5.2"
from .components import * from .components import *
from .common import * from .common import *
......
...@@ -69,6 +69,7 @@ class Ui_SpinBox: ...@@ -69,6 +69,7 @@ class Ui_SpinBox:
self.upButton.clicked.connect(self.stepUp) self.upButton.clicked.connect(self.stepUp)
self.downButton.clicked.connect(self.stepDown) self.downButton.clicked.connect(self.stepDown)
self.setAttribute(Qt.WA_MacShowFocusRect, False)
self.setContextMenuPolicy(Qt.CustomContextMenu) self.setContextMenuPolicy(Qt.CustomContextMenu)
self.customContextMenuRequested.connect(self._showContextMenu) self.customContextMenuRequested.connect(self._showContextMenu)
......
...@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f: ...@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
setuptools.setup( setuptools.setup(
name="PyQt-Fluent-Widgets", name="PyQt-Fluent-Widgets",
version="0.5.1", version="0.5.2",
keywords="pyqt fluent widgets", keywords="pyqt fluent widgets",
author="zhiyiYo", author="zhiyiYo",
author_email="shokokawaii@outlook.com", author_email="shokokawaii@outlook.com",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册