If I want to use a PassiveNotification to give some information to the user that either hides after a while or gets removed when it's no longer valid (i.e.: accessing some web service), then I need a way to explicitly hide the notification
/D From 4f8efa1c0e0a44cdc3e9504fa553d637766c41dc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel <d...@hohndel.org> Date: Wed, 2 Mar 2016 14:48:30 -0800 Subject: [PATCH] Allow the program to explicitly hide a notification Signed-off-by: Dirk Hohndel <d...@hohndel.org> --- components/mobilecomponents/qml/private/PassiveNotification.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/mobilecomponents/qml/private/PassiveNotification.qml b/components/mobilecomponents/qml/private/PassiveNotification.qml index 463f4d498d41..9cbd123b6fb8 100644 --- a/components/mobilecomponents/qml/private/PassiveNotification.qml +++ b/components/mobilecomponents/qml/private/PassiveNotification.qml @@ -57,6 +57,11 @@ MouseArea { timer.restart(); } + function hideNotification() { + visible = false; + } + + onClicked: { appearAnimation.appear = false; appearAnimation.running = true; -- 2.7.2 _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel