Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/qml/filters/gpsgraphic/ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ Item {
} else {
gpsFinishParseTimer.stop();
calls = 0;
filter.set('time_offset', filter.get('auto_gps_offset_start'));
setControls();
}
}
Expand Down Expand Up @@ -859,10 +860,10 @@ Item {

value: 1
horizontalAlignment: Qt.AlignRight
Layout.minimumWidth: 80
Layout.minimumWidth: 100
from: 0
to: 10000
decimals: 2
decimals: 3
stepSize: 1
suffix: 'x'
onValueChanged: {
Expand Down
23 changes: 14 additions & 9 deletions src/qml/filters/gpstext/ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ Shotcut.KeyframableFilter {
filter.set('smoothing_value', 5);
filter.set('videofile_timezone_seconds', 0);
filter.set('speed_multiplier', 1);
filter.set('updates_per_second', 1);
if (filter.isAtLeastVersion(9))
filter.set('updates_per_second', -1);
else
filter.set('updates_per_second', 1);
filter.set('gps_processing_start_time', 'yyyy-MM-dd hh:mm:ss');
} else {
if (filter.get('gps_processing_start_time') == 'yyyy-MM-dd hh:mm:ss' && filter.get('gps_start_text') != '')
Expand Down Expand Up @@ -646,10 +649,10 @@ Shotcut.KeyframableFilter {

value: 1
horizontalAlignment: Qt.AlignRight
Layout.minimumWidth: 80
Layout.minimumWidth: 100
from: 0
to: 1000
decimals: 2
to: 10000
decimals: 3
stepSize: 1
suffix: 'x'
onValueChanged: {
Expand Down Expand Up @@ -903,15 +906,17 @@ Shotcut.KeyframableFilter {
Layout.alignment: Qt.AlignRight

Shotcut.HoverTip {
text: qsTr('Set how many text updates to show per second.\nSet to 0 to only print real points (no interpolation).')
property var string_v0: qsTr('Set how many text updates to show per second.\nSet to 0 to only print real points (no interpolation).')
property var string_v9: qsTr('Set how many text updates to show per second.\nSet to 0 to only print real points (no interpolation).\nSet to -1 to update every frame.')
text: (filter.isAtLeastVersion(9) ? string_v9 : string_v0)
}
}

RowLayout {
TextField {
id: updates_per_second

text: '1'
text: (filter.isAtLeastVersion(9) ? '-1' : '1')
horizontalAlignment: TextInput.AlignRight
implicitWidth: 25
onFocusChanged: {
Expand All @@ -925,7 +930,7 @@ Shotcut.KeyframableFilter {
}

validator: DoubleValidator {
bottom: 0
bottom: (filter.isAtLeastVersion(9) ? -1 : 0)
top: 1000
}
}
Expand All @@ -936,8 +941,8 @@ Shotcut.KeyframableFilter {

Shotcut.UndoButton {
onClicked: {
filter.set('updates_per_second', 1);
updates_per_second.text = '1';
filter.set('updates_per_second', (filter.isAtLeastVersion(9) ? -1 : 1));
updates_per_second.text = (filter.isAtLeastVersion(9) ? '-1' : '1');
}
}
}
Expand Down
Loading