DataForm.ui.qml 704 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import QtQuick 2.7
  2. import "helpers" as Helpers
  3. Item {
  4. width: 400
  5. height: 400
  6. property alias showUnit: showUnit
  7. Helpers.ShowUnit {
  8. id: showUnit
  9. anchors.bottomMargin: 40
  10. anchors.fill: parent
  11. }
  12. Item {
  13. id: pageNameLayout
  14. height: 40
  15. anchors.right: parent.right
  16. anchors.rightMargin: 0
  17. anchors.left: parent.left
  18. anchors.leftMargin: 0
  19. anchors.bottom: parent.bottom
  20. anchors.bottomMargin: 0
  21. Text {
  22. id: pageName
  23. text: qsTr("Данные")
  24. anchors.fill: parent
  25. font.pixelSize: parent.width > 300 ? 24 : 12
  26. verticalAlignment: Text.AlignVCenter
  27. horizontalAlignment: Text.AlignHCenter
  28. renderType: Text.QtRendering
  29. font.capitalization: Font.MixedCase
  30. }
  31. }
  32. }