| 93 | |
| 94 | |
| 95 | void UBGraphicsItemPlayAudioAction::setPath(QString audioPath) |
| 96 | { |
| 97 | Q_ASSERT(audioPath.length() > 0); |
| 98 | mAudioPath = audioPath; |
| 99 | mFullPath = mAudioPath; |
| 100 | mAudioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this); |
| 101 | mMediaObject = new Phonon::MediaObject(this); |
| 102 | Phonon::createPath(mMediaObject, mAudioOutput); |
| 103 | mMediaObject->setCurrentSource(Phonon::MediaSource(mAudioPath)); |
| 104 | } |
| 105 | |
| 106 | QString UBGraphicsItemPlayAudioAction::fullPath() |
| 107 | { |
no test coverage detected