MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / setPath

Method setPath

src/customWidgets/UBGraphicsItemAction.cpp:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95void 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
106QString UBGraphicsItemPlayAudioAction::fullPath()
107{

Callers 4

UBFeaturesControllerMethod · 0.45
siftElementsMethod · 0.45

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected