Skip to content

Commit

Permalink
Fix deprecation warning for undefined parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatherly committed Aug 9, 2023
1 parent cf73a0a commit bd62f33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/qml/filters/dynamictext/ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/qml/filters/size_position/SizePositionVUI.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit bd62f33

Please sign in to comment.