This commit is contained in:
parent
738bbd9bd4
commit
f8d34fced1
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue