vcl/qt5/QtObject.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 81c94af71206013cb200f5612bc3bd61c799cf83 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Fri May 24 11:16:17 2024 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Fri May 24 18:17:58 2024 +0200
tdf#145735 qt: Set margins for video widget/layout to 0 Set all of the content margins of the layout that holds the widget for video playback to 0. Quoting [1]: > Sets the left, top, right, and bottom margins to use around the layout. > > By default, QLayout uses the values provided by the style. On most platforms, > the margin is 11 pixels in all directions. This makes the odd margin/frame shown around the video on video playback mentioned in commit 441d8ed9be0e7f831b455a69b8688dcb79a8bc00 Author: Michael Weghorn <m.wegh...@posteo.de> Date: Mon May 20 16:25:09 2024 +0200 tdf#145735 avmedia qt: Use QtMultimedia for Qt 6 media playback disappear. [1] https://doc.qt.io/qt-6/qlayout.html#setContentsMargins Change-Id: I29f1093caa986e6818fd575b031375ded0a572bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168010 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/qt5/QtObject.cxx b/vcl/qt5/QtObject.cxx index cd133e095ff5..bde8b570ac2e 100644 --- a/vcl/qt5/QtObject.cxx +++ b/vcl/qt5/QtObject.cxx @@ -115,6 +115,7 @@ QtObjectWidget::QtObjectWidget(QtObject& rParent) // set layout, used for video playback, see QtPlayer::createPlayerWindow QVBoxLayout* layout = new QVBoxLayout; + layout->setContentsMargins(0, 0, 0, 0); setLayout(layout); }