fix(ui): SpinBox和TimeEdit组件忽视滚轮事件
This commit is contained in:
@@ -59,7 +59,6 @@ from qfluentwidgets import (
|
||||
MessageBox,
|
||||
SubtitleLabel,
|
||||
SettingCard,
|
||||
SpinBox,
|
||||
FluentIconBase,
|
||||
Signal,
|
||||
ComboBox,
|
||||
@@ -71,7 +70,6 @@ from qfluentwidgets import (
|
||||
BodyLabel,
|
||||
QConfig,
|
||||
ConfigItem,
|
||||
TimeEdit,
|
||||
OptionsConfigItem,
|
||||
TeachingTip,
|
||||
TransparentToolButton,
|
||||
@@ -98,6 +96,23 @@ from qfluentwidgets.common.overload import singledispatchmethod
|
||||
from app.core import Config
|
||||
from app.services import Crypto
|
||||
|
||||
from qfluentwidgets import SpinBox as SpinBoxBase
|
||||
from qfluentwidgets import TimeEdit as TimeEditBase
|
||||
|
||||
|
||||
class SpinBox(SpinBoxBase):
|
||||
"""忽视滚轮事件的SpinBox"""
|
||||
|
||||
def wheelEvent(self, event):
|
||||
event.ignore()
|
||||
|
||||
|
||||
class TimeEdit(TimeEditBase):
|
||||
"""忽视滚轮事件的TimeEdit"""
|
||||
|
||||
def wheelEvent(self, event):
|
||||
event.ignore()
|
||||
|
||||
|
||||
class LineEditMessageBox(MessageBoxBase):
|
||||
"""输入对话框"""
|
||||
|
||||
Reference in New Issue
Block a user