summaryrefslogtreecommitdiffstats
path: root/examples/multimediawidgets/customvideosurface/customvideowidget
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-12-06 02:23:21 +0300
committerYoann Lopes <yoann.lopes@qt.io>2016-12-12 12:11:26 +0000
commit2304c5b38a9efe861f7d4e4e0518fcb82532450f (patch)
treeebe43f374c479d1f7b59a6bd77dd8b205761d9ea /examples/multimediawidgets/customvideosurface/customvideowidget
parent7bc230386e0d8d6f3c4ad5a0a6a22a625c9a8327 (diff)
Examples: Add missing override
Change-Id: I54529fdc8013497edb98ee97863fe4a141bdbf1c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'examples/multimediawidgets/customvideosurface/customvideowidget')
-rw-r--r--examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.h6
-rw-r--r--examples/multimediawidgets/customvideosurface/customvideowidget/videowidgetsurface.h10
2 files changed, 8 insertions, 8 deletions
diff --git a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.h b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.h
index f769f15b8..b57754643 100644
--- a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.h
+++ b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidget.h
@@ -56,11 +56,11 @@ public:
QAbstractVideoSurface *videoSurface() const { return surface; }
- QSize sizeHint() const;
+ QSize sizeHint() const override;
protected:
- void paintEvent(QPaintEvent *event);
- void resizeEvent(QResizeEvent *event);
+ void paintEvent(QPaintEvent *event) override;
+ void resizeEvent(QResizeEvent *event) override;
private:
VideoWidgetSurface *surface;
diff --git a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidgetsurface.h b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidgetsurface.h
index c869dbeb6..41d05b709 100644
--- a/examples/multimediawidgets/customvideosurface/customvideowidget/videowidgetsurface.h
+++ b/examples/multimediawidgets/customvideosurface/customvideowidget/videowidgetsurface.h
@@ -55,13 +55,13 @@ public:
VideoWidgetSurface(QWidget *widget, QObject *parent = 0);
QList<QVideoFrame::PixelFormat> supportedPixelFormats(
- QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle) const;
- bool isFormatSupported(const QVideoSurfaceFormat &format) const;
+ QAbstractVideoBuffer::HandleType handleType = QAbstractVideoBuffer::NoHandle) const override;
+ bool isFormatSupported(const QVideoSurfaceFormat &format) const override;
- bool start(const QVideoSurfaceFormat &format);
- void stop();
+ bool start(const QVideoSurfaceFormat &format) override;
+ void stop() override;
- bool present(const QVideoFrame &frame);
+ bool present(const QVideoFrame &frame) override;
QRect videoRect() const { return targetRect; }
void updateVideoRect();