diff -r 83dd3447a212 -r e04da46ee43c QTfrontend/ui/widget/qpushbuttonwithsound.cpp --- a/QTfrontend/ui/widget/qpushbuttonwithsound.cpp Fri Feb 17 17:43:59 2012 +0100 +++ b/QTfrontend/ui/widget/qpushbuttonwithsound.cpp Fri Feb 17 18:23:36 2012 +0100 @@ -1,26 +1,26 @@ -#include -#include - -#include "qpushbuttonwithsound.h" -#include "HWDataManager.h" -#include "SDLInteraction.h" -#include "hwform.h" -#include "gameuiconfig.h" - -QPushButtonWithSound::QPushButtonWithSound(QWidget *parent) : - QPushButton(parent), - isSoundEnabled(true) -{ - connect(this, SIGNAL(clicked()), this, SLOT(buttonClicked())); -} - -void QPushButtonWithSound::buttonClicked() -{ - if ( !isSoundEnabled || !HWForm::config->isFrontendSoundEnabled()) - return; - - HWDataManager & dataMgr = HWDataManager::instance(); - - if (this->isEnabled()) - SDLInteraction::instance().playSoundFile(dataMgr.findFileForRead("Sounds/roperelease.ogg")); -} +#include +#include + +#include "qpushbuttonwithsound.h" +#include "HWDataManager.h" +#include "SDLInteraction.h" +#include "hwform.h" +#include "gameuiconfig.h" + +QPushButtonWithSound::QPushButtonWithSound(QWidget *parent) : + QPushButton(parent), + isSoundEnabled(true) +{ + connect(this, SIGNAL(clicked()), this, SLOT(buttonClicked())); +} + +void QPushButtonWithSound::buttonClicked() +{ + if ( !isSoundEnabled || !HWForm::config->isFrontendSoundEnabled()) + return; + + HWDataManager & dataMgr = HWDataManager::instance(); + + if (this->isEnabled()) + SDLInteraction::instance().playSoundFile(dataMgr.findFileForRead("Sounds/roperelease.ogg")); +}