use new Phonon API in kaccess

This commit is contained in:
Ivailo Monev 2014-12-08 00:06:56 +00:00
parent 32493eaee1
commit 354eea82a2

View file

@ -3,7 +3,7 @@
#include <QTimer>
#include <QPainter>
#include <QUrl>
#include <QLabel>
#include <QtGui/QDesktopWidget>
#include <QGroupBox>
@ -477,7 +477,7 @@ void KAccessApp::xkbBellNotify(XkbBellNotifyEvent *event)
if (!_player) { // as creating the player is expensive, delay the creation
_player = Phonon::createPlayer(Phonon::AccessibilityCategory);
_player->setParent(this);
_player->setCurrentSource(_currentPlayerSource);
_player->setCurrentSource(QUrl::fromLocalFile(_currentPlayerSource));
}
_player->play();
}