|
|
@ -66,17 +66,12 @@ QVariant UBGraphicsMediaItem::itemChange(GraphicsItemChange change, const QVaria |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString absoluteMediaFilename; |
|
|
|
QString absoluteMediaFilename; |
|
|
|
|
|
|
|
|
|
|
|
// if (mMediaFileUrl.isRelative() && scene()->document())
|
|
|
|
if(mMediaFileUrl.toLocalFile().startsWith("audios/") || mMediaFileUrl.toLocalFile().startsWith("videos/")){ |
|
|
|
// {
|
|
|
|
absoluteMediaFilename = scene()->document()->persistencePath() + "/" + mMediaFileUrl.toLocalFile(); |
|
|
|
absoluteMediaFilename = |
|
|
|
} |
|
|
|
scene()->document()->persistencePath() |
|
|
|
else{ |
|
|
|
+ "/" + mMediaFileUrl.toLocalFile(); |
|
|
|
absoluteMediaFilename = mMediaFileUrl.toLocalFile(); |
|
|
|
// }
|
|
|
|
} |
|
|
|
// else if (!mMediaFileUrl.isRelative())
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// absoluteMediaFilename = mMediaFileUrl.toLocalFile();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (absoluteMediaFilename.length() > 0) |
|
|
|
if (absoluteMediaFilename.length() > 0) |
|
|
|
mMediaObject->setCurrentSource(Phonon::MediaSource(absoluteMediaFilename)); |
|
|
|
mMediaObject->setCurrentSource(Phonon::MediaSource(absoluteMediaFilename)); |
|
|
|