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):
|
||||
"""输入对话框"""
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
],
|
||||
"程序优化": [
|
||||
"重构日志记录,载入更多日志记录项",
|
||||
"优化日志监看启停逻辑"
|
||||
"优化日志监看启停逻辑",
|
||||
"SpinBox和TimeEdit组件忽视滚轮事件"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user