Note.qml 689 B

1234567891011121314151617181920212223242526272829303132
  1. import Qt 4.7
  2. Rectangle {
  3. property alias text: noteText.text
  4. z: 128
  5. anchors.fill: parent
  6. visible: true
  7. opacity: 0.9
  8. color: "green"
  9. onVisibleChanged: if (visible) timer.start();
  10. Timer {
  11. id: timer
  12. interval: appItem.splashTimeout
  13. onTriggered: visible = false;
  14. }
  15. Text {
  16. id: noteText
  17. color: heiaFocusColorOuter
  18. anchors.horizontalCenter: parent.horizontalCenter
  19. anchors.verticalCenter: parent.verticalCenter
  20. font.pixelSize: applicationFontSize
  21. }
  22. MouseArea {
  23. anchors.fill: parent
  24. onClicked: {timer.stop(); visible = false;}
  25. }
  26. }