InfoView.qml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * Copyright (c) 2011 Nokia Corporation.
  3. */
  4. import QtQuick 1.1
  5. Item {
  6. id: container
  7. anchors.fill: parent
  8. anchors.centerIn: parent
  9. anchors.topMargin: 40
  10. anchors.bottomMargin: 40
  11. anchors.leftMargin: 10
  12. anchors.rightMargin: 10
  13. opacity: 0
  14. Behavior on opacity {
  15. NumberAnimation { duration: 1000 }
  16. }
  17. Image {
  18. anchors.fill: parent
  19. fillMode: Image.PreserveAspectFit
  20. source: "qrc:/images/back_portrait.png"
  21. smooth: true
  22. }
  23. Flickable {
  24. id: flickable
  25. anchors {
  26. fill: parent
  27. leftMargin: 40
  28. rightMargin: 40
  29. topMargin: 60
  30. bottomMargin: 60
  31. }
  32. contentWidth: width
  33. contentHeight: infoText.height
  34. clip: true
  35. Text {
  36. id: infoText
  37. width: flickable.width
  38. color: "black"
  39. text: "<a href=\"https://projects.forum.nokia.com/wwdaemon\"><font color=\"#000000\">WhoWhere Daemon</font></a><br><br>" +
  40. "The WhoWhere Daemon Qt Quick application is a Nokia example and a child of the <a href=\"https://projects.forum.nokia.com/whowhere\"><font color=\"#000000\">WhoWhere</font></a> example. " +
  41. "The Daemon is divided into two parts, QML UI Client application and Daemon that is an executable binary without the UI. " +
  42. "The Daemon listens to your GPS location and answers location requests from WhoWhere automatically. " +
  43. "You can change the settings of the Daemon with this QML UI Client application.<br><br>" +
  44. "Sound was loaded from freesound.org under Creative Commons Sampling Plus 1.0 license." +
  45. "<br><br>" +
  46. "WhoWhere Daemon v1.0"
  47. wrapMode: Text.WordWrap
  48. onLinkActivated: {
  49. Qt.openUrlExternally(link);
  50. }
  51. }
  52. }
  53. // Exit
  54. Button {
  55. id: exit
  56. buttonId: 1
  57. width: 50
  58. height: 50
  59. y: parent.height - height - 20
  60. anchors.horizontalCenter: parent.horizontalCenter
  61. onBtnClicked: {
  62. main.showInfo(false);
  63. }
  64. }
  65. }