Fresh start from released sources + some work done
[kitchenalert] / src / selectsounddialog.cpp
index 210fb90..539796e 100644 (file)
@@ -29,7 +29,6 @@
 #include <QFileDialog>
 #include <QSettings>
 #include <QDebug>
-#include <Phonon>
 
 SelectSoundDialog::SelectSoundDialog(QWidget *parent) :
     QDialog(parent),
@@ -51,11 +50,6 @@ SelectSoundDialog::SelectSoundDialog(QWidget *parent) :
     }
     else ui->CustomSoundRadioButton->setChecked(true);
     qDebug() << "UseDefaultSoundfile is " << useDefaultSoundFile;
-
-    connect(ui->testButton,SIGNAL(clicked()),this,SLOT(testSound()));
-    pSound_ = Phonon::createPlayer(Phonon::NoCategory, Phonon::MediaSource(ui->lineEdit->displayText()));
-
-
 }
 
 SelectSoundDialog::~SelectSoundDialog()
@@ -83,9 +77,3 @@ bool SelectSoundDialog::isDefaultSoundChecked()
 {
     return ui->DefaultSoundRadioButton->isChecked();
 }
-
-void SelectSoundDialog::testSound( )
-{
-    pSound_->setCurrentSource(ui->lineEdit->displayText());
-    pSound_->play();
-}