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