diff options
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r-- | qt-mobile/qml/DiveDetails.qml | 12 |
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() ); - } - } } |