equal
deleted
inserted
replaced
9 #include "mouseoverfilter.h" |
9 #include "mouseoverfilter.h" |
10 #include "ui/page/AbstractPage.h" |
10 #include "ui/page/AbstractPage.h" |
11 #include "ui_hwform.h" |
11 #include "ui_hwform.h" |
12 #include "hwform.h" |
12 #include "hwform.h" |
13 #include "gameuiconfig.h" |
13 #include "gameuiconfig.h" |
14 #include "HWDataManager.h" |
14 #include "DataManager.h" |
15 #include "SDLInteraction.h" |
15 #include "SDLInteraction.h" |
16 |
16 |
17 MouseOverFilter::MouseOverFilter(QObject *parent) : |
17 MouseOverFilter::MouseOverFilter(QObject *parent) : |
18 QObject(parent) |
18 QObject(parent) |
19 { |
19 { |
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 HWDataManager & dataMgr = HWDataManager::instance(); |
44 DataManager & dataMgr = DataManager::instance(); |
45 SDLInteraction::instance().playSoundFile(dataMgr.findFileForRead("Sounds/steps.ogg")); |
45 SDLInteraction::instance().playSoundFile(dataMgr.findFileForRead("Sounds/steps.ogg")); |
46 } |
46 } |
47 |
47 |
48 return true; |
48 return true; |
49 } |
49 } |