Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37912344
en ru br
ALT Linux repositórios
S:1.6.4-alt4

Group :: Educação
RPM: OpenBoard

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0011-fix-videoSize-saving.patch
Download


From 8433689118e9f19795cf5270313ba21fd489d1c3 Mon Sep 17 00:00:00 2001
From: thomas_lucky13 <mkoul@mail.ru>
Date: Wed, 7 Dec 2022 16:38:46 +0300
Subject: [PATCH] fix-videoSize-saving
Videos placed in an OpenBoard document do not retain their adjusted size when the OpenBoard is closed.
When preparing the document, the video is placed at the correct size, 
but when opened - the video area settings are reset to the default settings, which is unacceptable.
The problem is solved by removing connect from UBGraphicsVideoItem with the nativeSizeChanged slot
Fixes: https://github.com/OpenBoard-org/OpenBoard/issues/715
---
 src/domain/UBGraphicsMediaItem.cpp | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/src/domain/UBGraphicsMediaItem.cpp b/src/domain/UBGraphicsMediaItem.cpp
index 402a48da..4cc03928 100644
--- a/src/domain/UBGraphicsMediaItem.cpp
+++ b/src/domain/UBGraphicsMediaItem.cpp
@@ -144,8 +144,12 @@ UBGraphicsVideoItem::UBGraphicsVideoItem(const QUrl &pMediaFileUrl, QGraphicsIte
     setMinimumSize(QSize(320, 240));
     setSize(320, 240);
 
+    /*
+     * I commented this to allow the video takes it's saved size
+     *
     connect(mVideoItem, SIGNAL(nativeSizeChanged(QSizeF)),
             this, SLOT(videoSizeChanged(QSizeF)));
+     */
 
     connect(mMediaObject, SIGNAL(videoAvailableChanged(bool)),
             this, SLOT(hasVideoChanged(bool)));
-- 
2.33.5
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009