HelpPage.qml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
  2. import QtQuick 1.1
  3. import "../parts/"
  4. KPage {
  5. id: karmaHelp
  6. property bool firstExecution: false
  7. //tools: helpTools
  8. Rectangle{
  9. anchors.fill: parent
  10. color: "#e1ecef"
  11. }
  12. Flickable{
  13. id: flickhelp
  14. width: parent.width; height: parent.height-titlebar.height
  15. contentWidth: parent.width;
  16. contentHeight: textHelp.height+100
  17. anchors.top: titlebar.bottom
  18. anchors.right: parent.right
  19. Text {
  20. id: textHelp
  21. anchors.margins: 10
  22. font.pixelSize: 22
  23. width: parent.width
  24. wrapMode: Text.WordWrap
  25. textFormat: Text.RichText
  26. text: qsTr("<b>The Karma Way</b><p><b>The Karma Way</b> is a simple app to keep track of your karma</p>\
  27. <p>Edit your profile in settings to add your photo and name</p>\
  28. <p>In the karma actions list you can add your good and bad actions, then you will see them refelcted in the main page's line graph.\
  29. The blue line represents your current karma status</p>")
  30. }
  31. }
  32. TitleBar{
  33. id: titlebar
  34. }
  35. KToolBar{
  36. KButton { text: "toolbar-back";
  37. onClicked: {
  38. if (firstExecution)
  39. pageStack.push(Qt.resolvedUrl("SettingsForm.qml"),{firstExecution:true})
  40. else
  41. pageStack.pop()
  42. }
  43. }
  44. }
  45. }