Skip to content

Commit

Permalink
Merge pull request #141 from dobey/onfoo-deprecation
Browse files Browse the repository at this point in the history
qml: Use new syntax for Connections components
  • Loading branch information
dobey authored Jun 29, 2022
2 parents bd463f2 + 7c6f056 commit 6baeedc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions qml/Keyboard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Item {

Connections {
target: input_method
onActivateAutocaps: {
function onActivateAutocaps() {
if (keypad.state == "CHARACTERS" && keypad.activeKeypadState != "CAPSLOCK" && !cursorSwipe) {
keypad.activeKeypadState = "SHIFTED";
keypad.autoCapsTriggered = true;
Expand All @@ -264,10 +264,10 @@ Item {
}
}

onKeyboardReset: {
function onKeyboardReset() {
keypad.state = "CHARACTERS"
}
onDeactivateAutocaps: {
function onDeactivateAutocaps() {
if(keypad.autoCapsTriggered) {
keypad.activeKeypadState = "NORMAL";
keypad.autoCapsTriggered = false;
Expand Down
2 changes: 1 addition & 1 deletion qml/keys/ActionsToolbarButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ AbstractButton {

Connections {
target: toolbarButton
onPressedChanged:{
function onPressedChanged(){
if (target.pressed) {
color = pressedColor
} else {
Expand Down
2 changes: 1 addition & 1 deletion qml/keys/CharKey.qml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ Item {

Connections {
target: swipeArea.drag
onActiveChanged: {
function onActiveChanged() {
if (swipeArea.drag.active)
keyMouseArea.cancelPress();
}
Expand Down
2 changes: 1 addition & 1 deletion qml/keys/FloatingActionKey.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ AbstractButton {

Connections {
target: floatingActionKey
onPressedChanged: {
function onPressedChanged() {
if (target.pressed) {
bg.color = pressedColor
} else {
Expand Down

0 comments on commit 6baeedc

Please sign in to comment.