00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "videoitem.h"
00019 #include "../QGst/Ui/graphicsvideowidget.h"
00020
00021 VideoItem::VideoItem(QDeclarativeItem *parent)
00022 : QDeclarativeItem(parent)
00023 {
00024 m_widget = new QGst::Ui::GraphicsVideoWidget(this);
00025 }
00026
00027 VideoItem::~VideoItem()
00028 {
00029 }
00030
00031 QGst::Ui::GraphicsVideoSurface *VideoItem::surface() const
00032 {
00033 return m_widget->surface();
00034 }
00035
00036 void VideoItem::setSurface(QGst::Ui::GraphicsVideoSurface *surface)
00037 {
00038 m_widget->setSurface(surface);
00039 }
00040
00041 void VideoItem::geometryChanged(const QRectF& newGeometry, const QRectF& oldGeometry)
00042 {
00043 m_widget->setGeometry(newGeometry);
00044 QDeclarativeItem::geometryChanged(newGeometry, oldGeometry);
00045 }