equal
deleted
inserted
replaced
37 QLineEdit * textfield = dynamic_cast<QLineEdit*>(dist); |
37 QLineEdit * textfield = dynamic_cast<QLineEdit*>(dist); |
38 QCheckBox * checkbox = dynamic_cast<QCheckBox*>(dist); |
38 QCheckBox * checkbox = dynamic_cast<QCheckBox*>(dist); |
39 QComboBox * droplist = dynamic_cast<QComboBox*>(dist); |
39 QComboBox * droplist = dynamic_cast<QComboBox*>(dist); |
40 QSlider * slider = dynamic_cast<QSlider*>(dist); |
40 QSlider * slider = dynamic_cast<QSlider*>(dist); |
41 QTabWidget * tab = dynamic_cast<QTabWidget*>(dist); |
41 QTabWidget * tab = dynamic_cast<QTabWidget*>(dist); |
42 if (HWForm::config->isFrontendSoundEnabled() && (button || textfield || checkbox || droplist || slider || tab)) |
42 if (button || textfield || checkbox || droplist || slider || tab) |
43 { |
43 { |
44 SDLInteraction::instance().playSoundFile("/Sounds/steps.ogg"); |
44 SDLInteraction::instance().playSoundFile("/Sounds/steps.ogg"); |
45 } |
45 } |
46 |
46 |
47 return true; |
47 return true; |