aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Marco Martin <notmart@gmail.com>2016-03-03 19:35:33 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-03 10:44:41 -0800
commitd24e5b455f4c52c59fe70f047f9ca0a6c30fcaa6 (patch)
tree6d6a62c371b05677adb6d3900ddfb842988a2f61 /qt-mobile/qml/DiveDetails.qml
parent93f9bcd0411770c52cc1e0d356b5da03729c253e (diff)
downloadsubsurface-d24e5b455f4c52c59fe70f047f9ca0a6c30fcaa6.tar.gz
use the global showPassiveNotification function
don't create a local PassiveNotification copy, use the global show/hidePassiveNotification from ApplicationWindow, now that it works Signed-off-by: Marco Martin <notmart@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml12
1 files changed, 1 insertions, 11 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index c5fb0e4f0..19a3466db 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -25,7 +25,6 @@ MobileComponents.Page {
property alias startpressure: detailsEdit.startpressureText
property alias endpressure: detailsEdit.endpressureText
property alias gasmix: detailsEdit.gasmixText
- property QtObject notificationComponent
state: "view"
@@ -65,8 +64,7 @@ MobileComponents.Page {
onTriggered: {
var deletedId = diveDetailsListView.currentItem.modelData.dive.id
manager.deleteDive(deletedId)
- var notification = notificationComponent.createObject(contentItem.parent);
- notification.showNotification("Dive deleted", 3000, "Undo",
+ showPassiveNotification("Dive deleted", 3000, "Undo",
function() {
manager.undoDelete(deletedId)
});
@@ -194,12 +192,4 @@ MobileComponents.Page {
id: detailsEdit
}
}
- Component.onCompleted: {
- notificationComponent = Qt.createComponent("PassiveNotification.qml");
- if( notificationComponent.status != Component.Ready ) {
- print("notificationComponent isn't ready with status " + notificationComponent.status)
- if( notificationComponent.status == Component.Error )
- print("Error:"+ notificationComponent.errorString() );
- }
- }
}