summaryrefslogtreecommitdiffstats
path: root/src/multimediawidgets/qvideowidget.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-06-18 08:49:47 +0200
committerLars Knoll <lars.knoll@qt.io>2021-06-18 20:24:08 +0200
commitb9bb2a3cf78102dfcfd6f80a7e96a1aa855c5f7a (patch)
tree3bdc9542029cc3afb7a24a8c359918e43ee9221e /src/multimediawidgets/qvideowidget.cpp
parent5773f7214c7430a98dea3974c0597cb3ee0ea7f5 (diff)
Remove brightness and related properties from QVideoSink and QVideoWidget
We currently do not support those on all platforms and most native APIs do not offer those kind of controls neither anymore. Change-Id: Ifa58d206796fba3b10dfa111be1c6f79a996539a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/multimediawidgets/qvideowidget.cpp')
-rw-r--r--src/multimediawidgets/qvideowidget.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/multimediawidgets/qvideowidget.cpp b/src/multimediawidgets/qvideowidget.cpp
index e3ae2ac08..659c83ece 100644
--- a/src/multimediawidgets/qvideowidget.cpp
+++ b/src/multimediawidgets/qvideowidget.cpp
@@ -112,10 +112,10 @@ QVideoWidget::QVideoWidget(QWidget *parent)
d_ptr->videoSink->setNativeWindowId(winId());
connect(d_ptr->videoSink, SIGNAL(newVideoFrame(const QVideoFrame &)), this, SLOT(_q_newFrame(const QVideoFrame &)));
- connect(d_ptr->videoSink, &QVideoSink::brightnessChanged, this, &QVideoWidget::brightnessChanged);
- connect(d_ptr->videoSink, &QVideoSink::contrastChanged, this, &QVideoWidget::contrastChanged);
- connect(d_ptr->videoSink, &QVideoSink::hueChanged, this, &QVideoWidget::hueChanged);
- connect(d_ptr->videoSink, &QVideoSink::saturationChanged, this, &QVideoWidget::saturationChanged);
+// connect(d_ptr->videoSink, &QVideoSink::brightnessChanged, this, &QVideoWidget::brightnessChanged);
+// connect(d_ptr->videoSink, &QVideoSink::contrastChanged, this, &QVideoWidget::contrastChanged);
+// connect(d_ptr->videoSink, &QVideoSink::hueChanged, this, &QVideoWidget::hueChanged);
+// connect(d_ptr->videoSink, &QVideoSink::saturationChanged, this, &QVideoWidget::saturationChanged);
}
/*!
@@ -189,6 +189,7 @@ void QVideoWidget::setFullScreen(bool fullScreen)
\sa isFullScreen()
*/
+#if 0
/*!
\property QVideoWidget::brightness
\brief an adjustment to the brightness of displayed video.
@@ -300,6 +301,7 @@ void QVideoWidget::setSaturation(float saturation)
\sa saturation()
*/
+#endif
/*!
Returns the size hint for the current back end,