equal
deleted
inserted
replaced
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 (HWForm::config->isFrontendSoundEnabled() && (button || textfield || checkbox || droplist || slider || tab)) |
43 { |
43 { |
44 DataManager & dataMgr = DataManager::instance(); |
44 SDLInteraction::instance().playSoundFile("/Sounds/steps.ogg"); |
45 SDLInteraction::instance().playSoundFile(dataMgr.findFileForRead("Sounds/steps.ogg")); |
|
46 } |
45 } |
47 |
46 |
48 return true; |
47 return true; |
49 } |
48 } |
50 else if (event->type() == QEvent::Leave) |
49 else if (event->type() == QEvent::Leave) |