This commit is contained in:
yangjiaxuan 2023-06-29 17:24:08 +08:00
parent 738bbd9bd4
commit f8d34fced1
1 changed files with 2 additions and 3 deletions

View File

@ -1919,15 +1919,14 @@ void hg_settingdialog::closeEvent(QCloseEvent* e)
bool hg_settingdialog::eventFilter(QObject *target, QEvent *event)
{
if (target->findChild<QSlider *>("QSlider"));
if (typeid(*target) == typeid(QSlider))
{
if (event->type() == QEvent::Wheel)
{
return true;
}
}
if (target->findChild<QComboBox*>("QComboBox"));
else if (typeid(*target) == typeid(QComboBox))
{
if (event->type() == QEvent::MouseButtonPress)
{