2
Copyright (C) 2012 Collabora Ltd. <info@collabora.com>
3
@author George Kiagiadakis <george.kiagiadakis@collabora.com>
5
This library is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published
7
by the Free Software Foundation; either version 2.1 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
15
You should have received a copy of the GNU Lesser General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
21
#include "../QGst/Ui/graphicsvideosurface.h"
22
#include <QtDeclarative/QDeclarativeItem>
24
class VideoItem : public QDeclarativeItem
27
Q_PROPERTY(QGst::Ui::GraphicsVideoSurface* surface READ surface WRITE setSurface)
29
explicit VideoItem(QDeclarativeItem *parent = 0);
32
QGst::Ui::GraphicsVideoSurface *surface() const;
33
void setSurface(QGst::Ui::GraphicsVideoSurface *surface);
36
virtual void geometryChanged(const QRectF & newGeometry, const QRectF & oldGeometry);
39
QGst::Ui::GraphicsVideoWidget *m_widget;