Add videos at their native size (not 320x240)

preferencesAboutTextFull
Craig Watson 9 years ago
parent 93dc25385f
commit 54214f93f0
  1. 3
      src/domain/UBGraphicsMediaItem.cpp
  2. 4
      src/domain/UBGraphicsMediaItem.h

@ -121,6 +121,9 @@ UBGraphicsMediaItem::UBGraphicsMediaItem(const QUrl& pMediaFileUrl, QGraphicsIte
connect(Delegate(), SIGNAL(showOnDisplayChanged(bool)), this, SLOT(showOnDisplayChanged(bool)));
connect(mMediaObject, SIGNAL(videoAvailableChanged(bool)), this, SLOT(hasMediaChanged(bool)));
// Resize the widget as soon as the video's native size is known (it isn't at this stage)
connect(mVideoItem, SIGNAL(nativeSizeChanged(QSizeF)), this, SLOT(resize(QSizeF)));
}

@ -112,8 +112,6 @@ public:
virtual void setPos(qreal x, qreal y);
virtual void setMatrix(const QMatrix &matrix, bool combine = false);
virtual void setTransform(const QTransform &matrix, bool combine = false);
virtual void resize(qreal w, qreal h);
virtual void resize(const QSizeF & pSize);
public slots:
@ -123,6 +121,8 @@ public slots:
void activeSceneChanged();
void hasMediaChanged(bool hasMedia);
void showOnDisplayChanged(bool shown);
virtual void resize(qreal w, qreal h);
virtual void resize(const QSizeF & pSize);
protected:

Loading…
Cancel
Save