File tree 3 files changed +26
-0
lines changed
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -2291,6 +2291,7 @@ void MultitrackModel::filterAddedOrRemoved(Mlt::Producer *producer)
2291
2291
QVector<int > roles;
2292
2292
roles << FadeInRole;
2293
2293
roles << FadeOutRole;
2294
+ roles << IsFilteredRole;
2294
2295
emit dataChanged (modelIndex, modelIndex, roles);
2295
2296
}
2296
2297
} else
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ Rectangle {
31
31
property bool isBlank: false
32
32
property bool isAudio: false
33
33
property bool isTransition: false
34
+ property bool isFiltered: false
34
35
property var audioLevels
35
36
property int fadeIn: 0
36
37
property int fadeOut: 0
@@ -425,6 +426,29 @@ Rectangle {
425
426
}
426
427
}
427
428
429
+ ToolButton {
430
+ visible: ! elided && ! isBlank && parent .height > 20 && isFiltered
431
+ icon .name : ' view-filter'
432
+ icon .source : ' qrc:///icons/oxygen/32x32/status/view-filter.png'
433
+ icon .width : 16
434
+ icon .height : 16
435
+ anchors .left : parent .left
436
+ anchors .bottom : parent .bottom
437
+ anchors .bottomMargin : 4
438
+ anchors .leftMargin : 4
439
+ width: 20
440
+ height: 20
441
+ padding: 1
442
+ focusPolicy: Qt .NoFocus
443
+ onClicked: {
444
+ clipRoot .clicked (clipRoot, null );
445
+ timeline .filteredClicked ();
446
+ }
447
+ Shotcut .HoverTip {
448
+ text: qsTr (' Filters' )
449
+ }
450
+ }
451
+
428
452
Shotcut .TimelineTriangle {
429
453
id: fadeInTriangle
430
454
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ Rectangle {
86
86
isBlank: typeof model .blank !== ' undefined' ? model .blank : false
87
87
isAudio: typeof model .audio !== ' undefined' ? model .audio : false
88
88
isTransition: typeof model .isTransition !== ' undefined' ? model .isTransition : false
89
+ isFiltered: typeof model .filtered !== ' undefined' ? model .filtered : false
89
90
audioLevels: typeof model .audioLevels !== ' undefined' ? model .audioLevels : " "
90
91
width: typeof model .duration !== ' undefined' ? model .duration * timeScale : 0
91
92
height: trackRoot .height
You can’t perform that action at this time.
0 commit comments