Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
notification.qml
import QtQuick 1.0
import org.hildon.components 1.0
import org.hildon.desktop 1.0
Window {
id: window
title: qsTr("Notification Example")
visible: true
id: button
anchors.centerIn: parent
width: 300
text: qsTr("Show notification")
onClicked: notificationComponent.createObject(window)
}
Component {
id: notificationComponent
id: notification
category: "qt-components-hildon"
hints: {"led-pattern": "PatternCommonNotification"}
iconSource: "general_web"
text: qsTr("This is an example QML notification")
timeout: Notification.DefaultTimeout
title: qsTr("QML notification")
visible: true
onAccepted: console.log(qsTr("Notification accepted"))
onRejected: console.log(qsTr("Notification rejected"))
}
}
}