notifs: optional action on click
This commit is contained in:
parent
e7c2c2bc6d
commit
253fb68578
2 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ Singleton {
|
||||||
readonly property int defaultExpireTimeout: 3000
|
readonly property int defaultExpireTimeout: 3000
|
||||||
readonly property real clearThreshold: 0.3
|
readonly property real clearThreshold: 0.3
|
||||||
readonly property int expandThreshold: 20
|
readonly property int expandThreshold: 20
|
||||||
|
readonly property bool actionOnClick: false
|
||||||
readonly property Sizes sizes: Sizes {}
|
readonly property Sizes sizes: Sizes {}
|
||||||
|
|
||||||
component Sizes: QtObject {
|
component Sizes: QtObject {
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ StyledRect {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onClicked: event => {
|
onClicked: event => {
|
||||||
if (event.button !== Qt.LeftButton)
|
if (!NotifsConfig.actionOnClick || event.button !== Qt.LeftButton)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const actions = root.modelData.actions;
|
const actions = root.modelData.actions;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue