From bd62f338f94e59c1647bc527b139ba32852b1db3 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 8 Aug 2023 22:27:56 -0500 Subject: [PATCH] Fix deprecation warning for undefined parameter --- src/qml/filters/dynamictext/ui.qml | 2 +- src/qml/filters/size_position/SizePositionVUI.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qml/filters/dynamictext/ui.qml b/src/qml/filters/dynamictext/ui.qml index e7609d1b4e..69a410d2f6 100644 --- a/src/qml/filters/dynamictext/ui.qml +++ b/src/qml/filters/dynamictext/ui.qml @@ -213,7 +213,7 @@ Item { filter.set('size', profile.height / text.split('\n').length); filter.set('argument', text); } - Keys.onPressed: { + Keys.onPressed: event => { if (event.key === Qt.Key_V && (event.modifiers & Qt.ShiftModifier) && (event.modifiers & Qt.ControlModifier || event.modifiers & Qt.MetaModifier)) { event.accepted = true; textArea.paste(); diff --git a/src/qml/filters/size_position/SizePositionVUI.qml b/src/qml/filters/size_position/SizePositionVUI.qml index d7939c97cd..e74a883f89 100644 --- a/src/qml/filters/size_position/SizePositionVUI.qml +++ b/src/qml/filters/size_position/SizePositionVUI.qml @@ -176,10 +176,10 @@ Shotcut.VuiBase { pinch.maximumRotation: 360 pinch.minimumScale: 0.1 pinch.maximumScale: 10 - Keys.onPressed: { + Keys.onPressed: event => { noModifiers = event.modifiers === Qt.NoModifier; } - Keys.onReleased: { + Keys.onReleased: event => { noModifiers = event.modifiers === Qt.NoModifier; } onPinchStarted: {