intellij-qml
intellij-qml copied to clipboard
Double negation falsely flagged as an error
The value of the enabled
property (two double negations) is falsely flagged as an error:
Action {
id: cutAction
text: "Cu&t"
shortcut: StandardKey.Cut
iconName: "edit-cut"
// In PyCharm, this is falsely flagged as a syntax error.
enabled: (!!activeFocusItem && !!activeFocusItem["cut"])
onTriggered: activeFocusItem.cut()
}