EvidenceInfo.qml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import QtQuick 1.1
  2. Rectangle {
  3. anchors.fill: evidenceTiles
  4. color: "#000000"
  5. radius: 15
  6. border.width: 3
  7. border.color: "#666666"
  8. Rectangle {
  9. id: evidenceInfoTitle
  10. width: parent.width
  11. height: 40
  12. color: evidenceInfo.color
  13. opacity: 1
  14. radius: 15
  15. border.width: 3
  16. border.color: "#666666"
  17. anchors.top: parent.top
  18. Text {
  19. id: evidenceInfoTitleText
  20. font.capitalization: Font.AllUppercase
  21. horizontalAlignment: Text.AlignHCenter
  22. verticalAlignment: Text.AlignVCenter
  23. anchors.fill: parent
  24. font.pixelSize: 24
  25. font.weight: Font.Bold
  26. color: "#ffffff"
  27. style: Text.Outline
  28. text: evidenceInfo.title
  29. }
  30. }
  31. Image {
  32. id: evidenceInfoPicture
  33. anchors.top: evidenceInfoTitle.bottom
  34. anchors.topMargin: 15
  35. anchors.left: parent.left
  36. anchors.leftMargin: 15
  37. anchors.right: parent.right
  38. anchors.rightMargin: 15
  39. visible: evidenceInfo.image=="" ? 0 : 1
  40. source: "pics/"+evidenceInfo.image;
  41. }
  42. Text {
  43. id: evidenceInfoDescriptionText
  44. wrapMode:Text.WordWrap
  45. horizontalAlignment: Text.AlignHCenter
  46. anchors.top: evidenceInfoPicture.bottom
  47. anchors.topMargin: 15
  48. anchors.left: parent.left
  49. anchors.leftMargin: 15
  50. anchors.right: parent.right
  51. anchors.rightMargin: 15
  52. anchors.bottom:parent.bottom
  53. font.pixelSize: 24
  54. font.weight: Font.Bold
  55. color: "#ffffff"
  56. style: Text.Outline
  57. text: evidenceInfo.description
  58. }
  59. MouseArea {
  60. anchors.fill: parent;
  61. onClicked: {
  62. if (isPlaying) {
  63. evidenceInfo.setVisible(false);
  64. }
  65. }
  66. }
  67. }