Change actionChanged to notificationActionChanged
Change actionChanged to notificationActionChanged to avoid any clashes with ItemDelegate action property signals
(cherry picked from commit 5340142c06)
This commit is contained in:
committed by
Tobias Fella
parent
6ec9cc2475
commit
40c3519737
@@ -177,7 +177,7 @@ FormCard.FormCardPage {
|
|||||||
onDeleteRule: {
|
onDeleteRule: {
|
||||||
root.pushRuleModel.removeKeyword(id);
|
root.pushRuleModel.removeKeyword(id);
|
||||||
}
|
}
|
||||||
onActionChanged: action => root.pushRuleModel.setPushRuleAction(id, action)
|
onNotificatonActionChanged: action => root.pushRuleModel.setPushRuleAction(id, action)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ FormCard.AbstractFormDelegate {
|
|||||||
readonly property bool notificationsOnModifiable: !deletable
|
readonly property bool notificationsOnModifiable: !deletable
|
||||||
readonly property bool highlightOn: isNotificationRuleHighlight(ruleAction)
|
readonly property bool highlightOn: isNotificationRuleHighlight(ruleAction)
|
||||||
|
|
||||||
signal actionChanged(int action)
|
signal notificatonActionChanged(int action)
|
||||||
signal deleteRule
|
signal deleteRule
|
||||||
|
|
||||||
enabled: ruleAction !== PushRuleAction.Unknown
|
enabled: ruleAction !== PushRuleAction.Unknown
|
||||||
@@ -78,7 +78,7 @@ FormCard.AbstractFormDelegate {
|
|||||||
enabled: root.enabled
|
enabled: root.enabled
|
||||||
down: checked
|
down: checked
|
||||||
onToggled: {
|
onToggled: {
|
||||||
root.actionChanged(root.notifcationRuleAction());
|
root.notificatonActionChanged(root.notifcationRuleAction());
|
||||||
}
|
}
|
||||||
|
|
||||||
QQC2.ToolTip {
|
QQC2.ToolTip {
|
||||||
@@ -99,7 +99,7 @@ FormCard.AbstractFormDelegate {
|
|||||||
enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled
|
enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled
|
||||||
down: checked
|
down: checked
|
||||||
onToggled: {
|
onToggled: {
|
||||||
root.actionChanged(root.notifcationRuleAction());
|
root.notificatonActionChanged(root.notifcationRuleAction());
|
||||||
}
|
}
|
||||||
|
|
||||||
QQC2.ToolTip {
|
QQC2.ToolTip {
|
||||||
@@ -121,7 +121,7 @@ FormCard.AbstractFormDelegate {
|
|||||||
enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled
|
enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled
|
||||||
down: checked
|
down: checked
|
||||||
onToggled: {
|
onToggled: {
|
||||||
root.actionChanged(root.notifcationRuleAction());
|
root.notificatonActionChanged(root.notifcationRuleAction());
|
||||||
}
|
}
|
||||||
|
|
||||||
QQC2.ToolTip {
|
QQC2.ToolTip {
|
||||||
@@ -178,7 +178,7 @@ FormCard.AbstractFormDelegate {
|
|||||||
finished = true;
|
finished = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
actionChanged(action);
|
notificatonActionChanged(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isNotificationRuleOn(action) {
|
function isNotificationRuleOn(action) {
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ FormCard.FormCardPage {
|
|||||||
onDeleteRule: {
|
onDeleteRule: {
|
||||||
root.pushRuleModel.removeKeyword(id);
|
root.pushRuleModel.removeKeyword(id);
|
||||||
}
|
}
|
||||||
onActionChanged: action => root.pushRuleModel.setPushRuleAction(id, action)
|
onNotificatonActionChanged: action => root.pushRuleModel.setPushRuleAction(id, action)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user