TextFieldSpecifics.qml 1.6 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. Column {
  8. width: parent.width
  9. Section {
  10. width: parent.width
  11. caption: qsTr("TextField")
  12. SectionLayout {
  13. Label {
  14. text: qsTr("Placeholder")
  15. tooltip: qsTr("Placeholder text displayed when the editor is empty.")
  16. }
  17. SecondColumnLayout {
  18. LineEdit {
  19. backendValue: backendValues.placeholderText
  20. Layout.fillWidth: true
  21. }
  22. }
  23. Label {
  24. text: qsTr("Hover")
  25. tooltip: qsTr("Whether text field accepts hover events.")
  26. }
  27. SecondColumnLayout {
  28. CheckBox {
  29. text: backendValues.hoverEnabled.valueToString
  30. backendValue: backendValues.hoverEnabled
  31. Layout.fillWidth: true
  32. }
  33. }
  34. }
  35. }
  36. Section {
  37. width: parent.width
  38. caption: qsTr("Placeholder Text Color")
  39. ColorEditor {
  40. caption: qsTr("Placeholder Text Color")
  41. backendValue: backendValues.placeholderTextColor
  42. supportGradient: false
  43. }
  44. }
  45. StandardTextSection {
  46. width: parent.width
  47. }
  48. FontSection {
  49. width: parent.width
  50. }
  51. PaddingSection {
  52. width: parent.width
  53. }
  54. InsetSection {
  55. width: parent.width
  56. }
  57. }