diff --git a/src/qml/filters/gpsgraphic/ui.qml b/src/qml/filters/gpsgraphic/ui.qml index d13812cdcc..f368fbe4fc 100644 --- a/src/qml/filters/gpsgraphic/ui.qml +++ b/src/qml/filters/gpsgraphic/ui.qml @@ -432,6 +432,7 @@ Item { } else { gpsFinishParseTimer.stop(); calls = 0; + filter.set('time_offset', filter.get('auto_gps_offset_start')); setControls(); } } @@ -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: { diff --git a/src/qml/filters/gpstext/ui.qml b/src/qml/filters/gpstext/ui.qml index 1dc54c8c88..510a46d323 100644 --- a/src/qml/filters/gpstext/ui.qml +++ b/src/qml/filters/gpstext/ui.qml @@ -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') != '') @@ -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: { @@ -903,7 +906,9 @@ 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) } } @@ -911,7 +916,7 @@ Shotcut.KeyframableFilter { TextField { id: updates_per_second - text: '1' + text: (filter.isAtLeastVersion(9) ? '-1' : '1') horizontalAlignment: TextInput.AlignRight implicitWidth: 25 onFocusChanged: { @@ -925,7 +930,7 @@ Shotcut.KeyframableFilter { } validator: DoubleValidator { - bottom: 0 + bottom: (filter.isAtLeastVersion(9) ? -1 : 0) top: 1000 } } @@ -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'); } } }