diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-07-11 10:35:45 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-08 10:11:08 +0200 |
commit | 9178132f75563cd0e907525f08736c1b4cec73b4 (patch) | |
tree | 4176f8cedd3dc667ae8ee563026191eac43ecdc2 /examples/multimediawidgets/customvideosurface/customvideowidget/videoplayer.cpp | |
parent | 5e35587975d6917c9d60ee06c40211af98020105 (diff) |
Remove usages of deprecated APIs
- Replace the usages of deprecated APIs by corresponding
alternatives.
- Made the tests for deprecated APIs to compile conditionally,
based on the deprecation version.
Task-number: QTBUG-76491
Task-number: QTBUG-76540
Task-number: QTBUG-76541
Change-Id: Ifd397dae9b3ebc2ba2504db7baa2d8ff21bfb3a7
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'examples/multimediawidgets/customvideosurface/customvideowidget/videoplayer.cpp')
-rw-r--r-- | examples/multimediawidgets/customvideosurface/customvideowidget/videoplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multimediawidgets/customvideosurface/customvideowidget/videoplayer.cpp b/examples/multimediawidgets/customvideosurface/customvideowidget/videoplayer.cpp index 7730f8140..5c1ca4221 100644 --- a/examples/multimediawidgets/customvideosurface/customvideowidget/videoplayer.cpp +++ b/examples/multimediawidgets/customvideosurface/customvideowidget/videoplayer.cpp @@ -81,7 +81,7 @@ VideoPlayer::VideoPlayer(QWidget *parent) this, &VideoPlayer::setPosition); QBoxLayout *controlLayout = new QHBoxLayout; - controlLayout->setMargin(0); + controlLayout->setContentsMargins(0, 0, 0, 0); controlLayout->addWidget(openButton); controlLayout->addWidget(playButton); controlLayout->addWidget(positionSlider); |