ScrollViewSpecifics.qml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright (C) 2017 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. // Qt-Security score:significant reason:default
  4. import QtQuick
  5. import HelperWidgets
  6. import QtQuick.Layouts
  7. Column {
  8. width: parent.width
  9. Section {
  10. width: parent.width
  11. caption: qsTr("ScrollView")
  12. SectionLayout {
  13. Label {
  14. text: qsTr("Content Width")
  15. tooltip: qsTr("Content height used for calculating the total implicit width.")
  16. }
  17. SecondColumnLayout {
  18. SpinBox {
  19. maximumValue: 9999999
  20. minimumValue: -9999999
  21. decimals: 0
  22. backendValue: backendValues.contentWidth
  23. Layout.fillWidth: true
  24. }
  25. }
  26. Label {
  27. text: qsTr("Content Height")
  28. tooltip: qsTr("Content height used for calculating the total implicit height.")
  29. }
  30. SecondColumnLayout {
  31. SpinBox {
  32. maximumValue: 9999999
  33. minimumValue: -9999999
  34. decimals: 0
  35. backendValue: backendValues.contentHeight
  36. Layout.fillWidth: true
  37. }
  38. }
  39. }
  40. }
  41. ControlSection {
  42. width: parent.width
  43. }
  44. FontSection {
  45. width: parent.width
  46. }
  47. PaddingSection {
  48. width: parent.width
  49. }
  50. }