mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kutils: de-duplicate KAudioPlayerModule code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
1efda255a2
commit
856b853b89
1 changed files with 1 additions and 4 deletions
|
@ -29,10 +29,7 @@ KAudioPlayerModule::KAudioPlayerModule(QObject *parent, const QList<QVariant>&)
|
||||||
|
|
||||||
void KAudioPlayerModule::play(const QString &path)
|
void KAudioPlayerModule::play(const QString &path)
|
||||||
{
|
{
|
||||||
KAudioPlayer* newplayer = new KAudioPlayer(this);
|
play(path, QString::fromLatin1("kded_kaudioplayer"));
|
||||||
newplayer->setPlayerID(QString::fromLatin1("kded_kaudioplayer"));
|
|
||||||
connect(newplayer, SIGNAL(finished()), this, SLOT(_removeFinished()));
|
|
||||||
newplayer->load(path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void KAudioPlayerModule::play(const QString &path, const QString &playerID)
|
void KAudioPlayerModule::play(const QString &path, const QString &playerID)
|
||||||
|
|
Loading…
Add table
Reference in a new issue