FlipSection.qml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Section {
  8. caption: qsTr("Flip")
  9. width: parent.width
  10. SectionLayout {
  11. PropertyLabel {
  12. text: qsTr("Horizontal")
  13. tooltip: qsTr("Flip horizontally.")
  14. }
  15. SecondColumnLayout {
  16. CheckBox {
  17. text: backendValues.flipHorizontally.valueToString
  18. backendValue: backendValues.flipHorizontally
  19. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  20. + StudioTheme.Values.actionIndicatorWidth
  21. }
  22. ExpandingSpacer {}
  23. }
  24. PropertyLabel {
  25. text: qsTr("Vertical")
  26. tooltip: qsTr("Flip vertically.")
  27. }
  28. SecondColumnLayout {
  29. CheckBox {
  30. text: backendValues.flipVertically.valueToString
  31. backendValue: backendValues.flipVertically
  32. implicitWidth: StudioTheme.Values.twoControlColumnWidth
  33. + StudioTheme.Values.actionIndicatorWidth
  34. }
  35. ExpandingSpacer {}
  36. }
  37. }
  38. }