GraphicsMediaItem

preferencesAboutTextFull
Ilia Ryabokon 12 years ago
commit 48a431547a
  1. 12
      src/domain/UBGraphicsMediaItem.cpp

@ -74,16 +74,12 @@ UBGraphicsMediaItem::UBGraphicsMediaItem(const QUrl& pMediaFileUrl, QGraphicsIte
mVideoWidget = new Phonon::VideoWidget(); // owned and destructed by the scene ... mVideoWidget = new Phonon::VideoWidget(); // owned and destructed by the scene ...
Phonon::createPath(mMediaObject, mVideoWidget); Phonon::createPath(mMediaObject, mVideoWidget);
/*
* The VideoVidget should recover the size from the original movie, but this is not always true expecially on
* windows and linux os. I don't know why?
* In this case the wiget size is equal to QSize(1,1).
*/
if(mVideoWidget->sizeHint() == QSize(1,1)){ if(mVideoWidget->sizeHint() == QSize(1,1)){
mVideoWidget->resize(320,240); mVideoWidget->resize(320,240);
mVideoWidget->setMinimumSize(140,26);
} }
mVideoWidget->setMinimumSize(140,26);
setWidget(mVideoWidget); setWidget(mVideoWidget);
haveLinkedImage = true; haveLinkedImage = true;
} }
@ -328,4 +324,4 @@ void UBGraphicsMediaItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
event->accept(); event->accept();
} }

Loading…
Cancel
Save