ItemViewPage.qml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /**
  2. * Copyright (c) 2012 Nokia Corporation.
  3. */
  4. import QtQuick 1.1
  5. import com.nokia.symbian 1.1
  6. import com.nokia.extras 1.1
  7. import "../Constants.js" as Constants
  8. Page {
  9. property string infoText: Constants.TIME_INFOTEXT
  10. tools: toolBarBackAndInfo
  11. Flickable{
  12. anchors.fill: parent
  13. contentHeight: mainItem.height + platformStyle.paddingLarge
  14. Item{
  15. id: mainItem
  16. anchors.top: parent.top
  17. width: parent.width
  18. height: childrenRect.height
  19. Item{
  20. id: headerItem
  21. anchors.top: parent.top
  22. anchors.horizontalCenter: parent.horizontalCenter
  23. anchors.margins: platformStyle.paddingLarge
  24. width: parent.width - 2 * platformStyle.paddingLarge
  25. height: childrenRect.height + anchors.margins
  26. Label{
  27. id: titleLabel
  28. anchors.top: parent.top
  29. anchors.left: parent.left
  30. font.pixelSize: platformStyle.fontSizeLarge
  31. font.bold: true
  32. platformInverted: window.platformInverted
  33. text: "Lorem ipsum"
  34. }
  35. Label{
  36. id: subjectLabel
  37. anchors.top: titleLabel.bottom
  38. anchors.topMargin: platformStyle.paddingLarge
  39. anchors.left: parent.left
  40. font.pixelSize: platformStyle.fontSizeMedium
  41. platformInverted: window.platformInverted
  42. text: "Re: Re: Meeting notes, session1"
  43. }
  44. Label{
  45. id: timestampLabel
  46. anchors.top: subjectLabel.bottom
  47. anchors.topMargin: platformStyle.paddingLarge
  48. anchors.left: parent.left
  49. font.pixelSize: platformStyle.fontSizeMedium
  50. platformInverted: window.platformInverted
  51. text: "July 17, 2011 4:18 PM"
  52. }
  53. }
  54. Rectangle{
  55. id: separator
  56. anchors.top: headerItem.bottom
  57. height: 1
  58. width: parent.width
  59. color: "gray"
  60. }
  61. Label{
  62. anchors.top: separator.bottom
  63. anchors.topMargin: platformStyle.paddingLarge
  64. anchors.horizontalCenter: parent.horizontalCenter
  65. width: parent.width - 2 * platformStyle.paddingLarge
  66. wrapMode: Text.WordWrap
  67. horizontalAlignment: Text.AlignLeft
  68. platformInverted: window.platformInverted
  69. text: Constants.LOREM_IPSUM_TEXT
  70. }
  71. }
  72. }
  73. }