mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
use new Phonon API in kaccess
This commit is contained in:
parent
32493eaee1
commit
354eea82a2
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue