PaddingSection.qml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. Section {
  8. caption: qsTr("Padding")
  9. SectionLayout {
  10. Label {
  11. text: qsTr("Top")
  12. tooltip: qsTr("Padding between the content and the top edge of the control.")
  13. }
  14. SecondColumnLayout {
  15. SpinBox {
  16. maximumValue: 9999999
  17. minimumValue: -9999999
  18. decimals: 0
  19. backendValue: backendValues.topPadding
  20. Layout.fillWidth: true
  21. }
  22. }
  23. Label {
  24. text: qsTr("Left")
  25. tooltip: qsTr("Padding between the content and the left edge of the control.")
  26. }
  27. SecondColumnLayout {
  28. SpinBox {
  29. maximumValue: 9999999
  30. minimumValue: -9999999
  31. decimals: 0
  32. backendValue: backendValues.leftPadding
  33. Layout.fillWidth: true
  34. }
  35. }
  36. Label {
  37. text: qsTr("Right")
  38. tooltip: qsTr("Padding between the content and the right edge of the control.")
  39. }
  40. SecondColumnLayout {
  41. SpinBox {
  42. maximumValue: 9999999
  43. minimumValue: -9999999
  44. decimals: 0
  45. backendValue: backendValues.rightPadding
  46. Layout.fillWidth: true
  47. }
  48. }
  49. Label {
  50. text: qsTr("Bottom")
  51. tooltip: qsTr("Padding between the content and the bottom edge of the control.")
  52. }
  53. SecondColumnLayout {
  54. SpinBox {
  55. maximumValue: 9999999
  56. minimumValue: -9999999
  57. decimals: 0
  58. backendValue: backendValues.bottomPadding
  59. Layout.fillWidth: true
  60. }
  61. }
  62. }
  63. }