CommitInfoLine.qml 890 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import QtQuick 2.0
  2. Item {
  3. id: root
  4. property string field: ""
  5. property string value: ""
  6. width: parent.width
  7. height:childrenRect.height + 10
  8. clip: true
  9. Row {
  10. id: info
  11. height: content.height
  12. Text {
  13. wrapMode: Text.WordWrap
  14. width: contentWidth
  15. height: contentHeight
  16. text: qsTr(root.field) + ": "
  17. font.pointSize: 10
  18. font.weight: Font.Bold
  19. }
  20. Text {
  21. id: content
  22. width: contentWidth
  23. height: contentHeight
  24. font.pointSize: 10
  25. text: root.value
  26. }
  27. }
  28. Rectangle {
  29. anchors.top: info.bottom
  30. anchors.topMargin: 10
  31. anchors.horizontalCenter: parent.horizontalCenter
  32. width: parent.width - 4
  33. height: 2
  34. radius: 2
  35. color: "#eeeeee"
  36. }
  37. }