public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kdenlive] f44: Fix build against Qt 6.12
@ 2026-10-30 19:33 Jan Grulich
0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-10-30 19:33 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/kdenlive
Branch : f44
Commit : ab074410e751e58c9a7ad528cdcad521da042ff2
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2026-10-24T22:29:41+02:00
Stats : +181/-2 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/kdenlive/c/ab074410e751e58c9a7ad528cdcad521da042ff2?branch=f44
Log:
Fix build against Qt 6.12
---
diff --git a/kdenlive-fix-confusing-expression-statement-qml-error.patch b/kdenlive-fix-confusing-expression-statement-qml-error.patch
new file mode 100644
index 0000000..4719697
--- /dev/null
+++ b/kdenlive-fix-confusing-expression-statement-qml-error.patch
@@ -0,0 +1,65 @@
+From 2a40ef90e699ae270fc8c1e4b0db36c0c9b9a029 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Julius=20K=C3=BCnzel?= <julius.kuenzel@kde.org>
+Date: Sun, 9 Aug 2026 23:27:32 +0200
+Subject: [PATCH] Fix confusing-expression-statement qml error with Qt 6.12
+
+---
+ src/timeline2/view/qml/ClipThumbs.qml | 17 ++++++++---------
+ 1 file changed, 8 insertions(+), 9 deletions(-)
+
+diff --git a/src/timeline2/view/qml/ClipThumbs.qml b/src/timeline2/view/qml/ClipThumbs.qml
+index e990ec3..b5d0c7e 100644
+--- a/src/timeline2/view/qml/ClipThumbs.qml
++++ b/src/timeline2/view/qml/ClipThumbs.qml
+@@ -30,29 +30,28 @@ Row {
+ id: thumbRepeater
+ // switching the model allows one to have different view modes.
+ // We set the model to the number of frames we want to show
+- model: switch (parentTrack.trackThumbsFormat) {
+- case 0:
+- // in/out
+- if (parent.width > thumbRow.thumbWidth) {
+- 2 // 2: will display start / end thumbs
+- } else {
+- 1 // 1: if the width of the container is to small, only show first thumbnail
+- }
+- break;
+- case 1:
+- // All frames
+- // display as many thumbnails as can fit into the container
+- Math.ceil(parent.width / thumbRow.thumbWidth)
+- break;
+- case 2:
+- // In frame only
+- 1 // 1: only show first thumbnail
+- break;
+- case 3:
+- default:
+- // No thumbs
+- 0 // 0: will disable thumbnails
+- }
++ model: {
++ switch (parentTrack.trackThumbsFormat) {
++ case 0:
++ // in/out
++ if (parent.width > thumbRow.thumbWidth) {
++ return 2 // 2: will display start / end thumbs
++ } else {
++ return 1 // 1: if the width of the container is to small, only show first thumbnail
++ }
++ case 1:
++ // All frames
++ // display as many thumbnails as can fit into the container
++ return Math.ceil(parent.width / thumbRow.thumbWidth)
++ case 2:
++ // In frame only
++ return 1 // 1: only show first thumbnail
++ case 3:
++ default:
++ // No thumbs
++ return 0 // 0: will disable thumbnails
++ }
++ }
+ property int startFrame: thumbRow.parentClip.inPoint
+ property int endFrame: thumbRow.parentClip.outPoint
+ property real imageWidth: Math.max(thumbRow.thumbWidth, parent.width / thumbRepeater.count)
diff --git a/kdenlive-fix-timeline-qml-property-access.patch b/kdenlive-fix-timeline-qml-property-access.patch
new file mode 100644
index 0000000..a7629ed
--- /dev/null
+++ b/kdenlive-fix-timeline-qml-property-access.patch
@@ -0,0 +1,109 @@
+From 614a6d686ca158043f12dd0227894917f2bd9b5e Mon Sep 17 00:00:00 2001
+From: Nicolas Carion <carion.nicolas@gmail.com>
+Date: Sun, 13 Sep 2026 16:29:08 +0000
+Subject: [PATCH] Fix timeline QML property access with Qt 6.12
+
+Required to fix the build on SUSE Qt 6.12
+---
+ src/timeline2/view/qml/Clip.qml | 27 ++++++++++++++-----------
+ src/timeline2/view/qml/KeyframeView.qml | 1 -
+ src/timeline2/view/qml/Timeline.qml | 7 +------
+ 3 files changed, 16 insertions(+), 19 deletions(-)
+
+diff --git a/src/timeline2/view/qml/Clip.qml b/src/timeline2/view/qml/Clip.qml
+index 9ddd8ca..4977aae 100644
+--- a/src/timeline2/view/qml/Clip.qml
++++ b/src/timeline2/view/qml/Clip.qml
+@@ -105,6 +105,16 @@ Rectangle {
+ signal trimmingOut(var clip, real newDuration, bool shiftTrim, bool controlTrim)
+ signal trimmedOut(var clip, bool shiftTrim, bool controlTrim)
+
++ component ClipMarker: Rectangle {
++ property string markerText
++ property color markerColor
++ property int position
++ property bool hasRange: false
++ property real duration: 0
++ property int id
++ signal restorePositionBindings()
++ }
++
+ onVisibleChanged: {
+ if (clipRoot.visible) {
+ updateLabelOffset()
+@@ -668,14 +678,8 @@ Rectangle {
+ }
+ Component {
+ id: markerComponent
+- Rectangle {
++ ClipMarker {
+ id: markerBase
+- property string markerText
+- property color markerColor
+- property int position
+- property bool hasRange: false
+- property real duration: 0
+- property int id
+ width: hasRange ? Math.max(1, Math.round(duration / clipRoot.speed * clipRoot.timeScale)) : 1
+ height: hasRange ? textMetrics.height + 2 : container.height
+ x: clipRoot.speed < 0
+@@ -1532,9 +1536,8 @@ Rectangle {
+ clip: true
+ anchors.fill: parent
+ asynchronous: true
+- property bool hasKeyframes: false
+ active: clipRoot.visible
+- visible: status == Loader.Ready && clipRoot.showKeyframes && clipRoot.keyframeModel && hasKeyframes && clipRoot.width > 2 * K.UiUtils.baseSizeMedium
++ visible: status == Loader.Ready && effectRow.item && clipRoot.showKeyframes && clipRoot.keyframeModel && (effectRow.item as KeyframeView).kfrCount > 1 && clipRoot.width > 2 * K.UiUtils.baseSizeMedium
+ source: clipRoot.hideClipViews || clipRoot.keyframeModel == undefined ? "" : "KeyframeView.qml"
+ Binding {
+ target: effectRow.item
+diff --git a/src/timeline2/view/qml/KeyframeView.qml b/src/timeline2/view/qml/KeyframeView.qml
+index 1647c4c..f78a5b9 100644
+--- a/src/timeline2/view/qml/KeyframeView.qml
++++ b/src/timeline2/view/qml/KeyframeView.qml
+@@ -25,7 +25,6 @@ Rectangle
+ signal seek(int position)
+
+ onKfrCountChanged: {
+- parent.hasKeyframes = kfrCount > 1
+ keyframecanvas.requestPaint()
+ }
+
+diff --git a/src/timeline2/view/qml/Timeline.qml b/src/timeline2/view/qml/Timeline.qml
+index 1eb07d3..9e2a75c 100644
+--- a/src/timeline2/view/qml/Timeline.qml
++++ b/src/timeline2/view/qml/Timeline.qml
+@@ -892,12 +892,10 @@ function getTrackColor(audio, header) {
+ }
+ root.lastDropTrack = targetTrack
+ if (root.clipBeingDroppedId == -1) {
+- drag.accepted=false
+ bubbleHelp.hide()
+ root.continuousScrolling(drag.x + scrollView.contentX, drag.y + scrollView.contentY, upMove)
+ return
+ }
+- drag.accepted=true
+ var _audioInfo = root.controller.clipAudioStreamInfo(root.clipBeingDroppedData, targetTrack)
+ if (_audioInfo[1] >=0 && _audioInfo[0] >=0 && !_audioInfo[2]) {
+ bubbleHelp.text = KI18n.i18np("Audio: %1 track for %2 streams", "Audio: %1 tracks for %2 streams", _audioInfo[1], _audioInfo[0])
+@@ -935,9 +933,6 @@ function getTrackColor(audio, header) {
+ root.timeline.setTimelineMouseOffset(scrollView.contentX - root.headerWidth)
+ }
+ }
+- else {
+- drag.accepted=false
+- }
+ }
+ function processDrop()
+ {
+@@ -1063,8 +1058,8 @@ function getTrackColor(audio, header) {
+ root.updateTimelineMousePos(frame, root.timeline.duration)
+ if (root.clipBeingMovedId == -1) {
+ if (root.clipBeingDroppedId > -1) {
+- drag.accepted=true
+ moveDrop(0, 0)
++ drag.accepted = root.clipBeingDroppedId > -1
+ } else {
+ var yOffset = 0
+ if (root.showSubtitles) {
diff --git a/kdenlive.spec b/kdenlive.spec
index d87ce6f..275bf13 100644
--- a/kdenlive.spec
+++ b/kdenlive.spec
@@ -10,6 +10,11 @@ URL: http://www.kdenlive.org
Source0: https://download.kde.org/%{stable_kf6}/release-service/%{version}/src/%{name}-%{version}.tar.xz
+# https://github.com/KDE/kdenlive/commit/614a6d686ca158043f12dd0227894917f2bd9b5e
+Patch: kdenlive-fix-timeline-qml-property-access.patch
+# https://github.com/KDE/kdenlive/commit/2a40ef90e699ae270fc8c1e4b0db36c0c9b9a029
+Patch: kdenlive-fix-confusing-expression-statement-qml-error.patch
+
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: desktop-file-utils
@@ -69,7 +74,7 @@ Requires: frei0r-plugins
Requires: kf6-qqc2-desktop-style
Requires: kf6-kirigami2
-# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
+# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
%description
@@ -766,7 +771,7 @@ desktop-file-validate %{buildroot}%{_kf6_datadir}/applications/org.kde.%{name}.d
* Tue Jul 8 2008 jeff <moe@blagblagblag.org> - 0.6-1.svn2298.0blag.f9
- Update to svn r2298
- New Requires
-- kdenlive-svn-r2298-renderer-CMakeLists.patch
+- kdenlive-svn-r2298-renderer-CMakeLists.patch
* Sun Nov 11 2007 jeff <moe@blagblagblag.org> - 0.5-1blag.f7
- Update to 0.5 final
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 19:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 19:33 [rpms/kdenlive] f44: Fix build against Qt 6.12 Jan Grulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox