QTfrontend/ui/mouseoverfilter.cpp
branchphysfslayer
changeset 8049 133e22b5c410
parent 6930 d187ea93fc4f
child 8326 023a71940f26
equal deleted inserted replaced
8046:4d3415927d2c 8049:133e22b5c410
    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)