Skip to content

Commit a93f289

Browse files
ddennedybmatherly
andcommitted
add IsFilteredRole for clips to MultitrackModel
see #1637 Co-authored-by: Brian Matherly <brian.matherly@yahoo.com>
1 parent 703a5bc commit a93f289

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/models/multitrackmodel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2024 Meltytech, LLC
2+
* Copyright (c) 2013-2025 Meltytech, LLC
33
*
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
@@ -2291,6 +2291,7 @@ void MultitrackModel::filterAddedOrRemoved(Mlt::Producer *producer)
22912291
QVector<int> roles;
22922292
roles << FadeInRole;
22932293
roles << FadeOutRole;
2294+
roles << IsFilteredRole;
22942295
emit dataChanged(modelIndex, modelIndex, roles);
22952296
}
22962297
} else

src/qml/views/timeline/Clip.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2024 Meltytech, LLC
2+
* Copyright (c) 2013-2025 Meltytech, LLC
33
*
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
@@ -31,6 +31,7 @@ Rectangle {
3131
property bool isBlank: false
3232
property bool isAudio: false
3333
property bool isTransition: false
34+
property bool isFiltered: false
3435
property var audioLevels
3536
property int fadeIn: 0
3637
property int fadeOut: 0

src/qml/views/timeline/Track.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013-2024 Meltytech, LLC
2+
* Copyright (c) 2013-2025 Meltytech, LLC
33
*
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
@@ -86,6 +86,7 @@ Rectangle {
8686
isBlank: typeof model.blank !== 'undefined' ? model.blank : false
8787
isAudio: typeof model.audio !== 'undefined' ? model.audio : false
8888
isTransition: typeof model.isTransition !== 'undefined' ? model.isTransition : false
89+
isFiltered: typeof model.filtered !== 'undefined' ? model.filtered : false
8990
audioLevels: typeof model.audioLevels !== 'undefined' ? model.audioLevels : ""
9091
width: typeof model.duration !== 'undefined' ? model.duration * timeScale : 0
9192
height: trackRoot.height

0 commit comments

Comments
 (0)