fix(StatusToastMessage): `clicked` signal added
This commit is contained in:
parent
7d064d6c6e
commit
604bb7a74c
|
@ -35,6 +35,9 @@ Item {
|
|||
onClose: {
|
||||
console.warn("toast closed: ", modelData.title)
|
||||
}
|
||||
onClicked: {
|
||||
console.warn("toast clicked")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -125,6 +125,11 @@ Control {
|
|||
root.open = true;
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlsignal
|
||||
This signal is emitted when the ToastMessage is clicked.
|
||||
*/
|
||||
signal clicked()
|
||||
/*!
|
||||
\qmlsignal
|
||||
This signal is emitted when the ToastMessage is closed (after animation).
|
||||
|
@ -214,6 +219,9 @@ Control {
|
|||
onMouseXChanged: {
|
||||
root.open = (mouseX < (root.width/3));
|
||||
}
|
||||
onClicked: {
|
||||
root.clicked();
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
|
|
Loading…
Reference in New Issue