|
|
@ -65,16 +65,16 @@ QVariant UBGraphicsMediaItem::itemChange(GraphicsItemChange change, const QVaria |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString absoluteMediaFilename; |
|
|
|
QString absoluteMediaFilename; |
|
|
|
|
|
|
|
|
|
|
|
if (mMediaFileUrl.isRelative() && scene()->document()) |
|
|
|
// if (mMediaFileUrl.isRelative() && scene()->document())
|
|
|
|
{ |
|
|
|
// {
|
|
|
|
absoluteMediaFilename = |
|
|
|
absoluteMediaFilename = |
|
|
|
/*scene()->document()->persistencePath()
|
|
|
|
scene()->document()->persistencePath() |
|
|
|
+ "/" + */mMediaFileUrl.toLocalFile(); |
|
|
|
+ "/" + mMediaFileUrl.toLocalFile(); |
|
|
|
} |
|
|
|
// }
|
|
|
|
else if (!mMediaFileUrl.isRelative()) |
|
|
|
// else if (!mMediaFileUrl.isRelative())
|
|
|
|
{ |
|
|
|
// {
|
|
|
|
absoluteMediaFilename = mMediaFileUrl.toLocalFile(); |
|
|
|
// absoluteMediaFilename = mMediaFileUrl.toLocalFile();
|
|
|
|
} |
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (absoluteMediaFilename.length() > 0) |
|
|
|
if (absoluteMediaFilename.length() > 0) |
|
|
|