diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2019-11-12 18:04:40 +0100 |
---|---|---|
committer | Henning Gründl <henning.gruendl@qt.io> | 2019-11-13 10:14:42 +0000 |
commit | d9981135c1168002f60049a50ed5d6807aca57e3 (patch) | |
tree | de5b2b6e095cbae85cd41b3a8e57a644f6acd780 /share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick | |
parent | 8722836b4456443d3e6173e49df93da831c531ee (diff) | |
download | qt-creator-d9981135c1168002f60049a50ed5d6807aca57e3.tar.gz |
QmlDesigner: PropertyEditor TextSection cleanup
Change-Id: I042f38303aad016d939a39c7a638d330fca2ba58
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick')
4 files changed, 91 insertions, 6 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextEditSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextEditSpecifics.qml index c1a7a1e8d6..6a09b44a29 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextEditSpecifics.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextEditSpecifics.qml @@ -32,8 +32,7 @@ Column { anchors.right: parent.right StandardTextSection { - showIsWrapping: true - useLineEdit: true + showVerticalAlignment: true showFormatProperty: true } @@ -62,6 +61,18 @@ Column { } } + Section { + anchors.left: parent.left + anchors.right: parent.right + caption: qsTr("Selected Text Color") + + ColorEditor { + caption: qsTr("Selected Text Color") + backendValue: backendValues.selectedTextColor + supportGradient: false + } + } + FontSection { showStyle: false } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml index addcf393de..0a86f11358 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml @@ -40,6 +40,16 @@ Section { columns: 2 Label { + text: qsTr("Mouse selection mode") + } + ComboBox { + Layout.fillWidth: true + backendValue: backendValues.mouseSelectionMode + scope: "TextInput" + model: ["SelectCharacters", "SelectWords"] + } + + Label { visible: textInputSection.isTextInput text: qsTr("Input mask") } @@ -48,6 +58,7 @@ Section { visible: textInputSection.isTextInput backendValue: backendValues.inputMask Layout.fillWidth: true + showTranslateCheckBox: false } Label { @@ -73,6 +84,33 @@ Section { visible: textInputSection.isTextInput backendValue: backendValues.passwordCharacter Layout.fillWidth: true + showTranslateCheckBox: false + } + + Label { + visible: !textInputSection.isTextInput + text: qsTr("Tab stop distance") + tooltip: qsTr("Sets the default distance, in device units, between tab stops.") + } + SpinBox { + visible: !textInputSection.isTextInput + Layout.fillWidth: true + backendValue: backendValues.tabStopDistance + maximumValue: 200 + minimumValue: 0 + } + + Label { + visible: !textInputSection.isTextInput + text: qsTr("Text margin") + tooltip: qsTr("Sets the margin, in pixels, around the text in the TextEdit..") + } + SpinBox { + visible: !textInputSection.isTextInput + Layout.fillWidth: true + backendValue: backendValues.textMargin + maximumValue: 200 + minimumValue: -200 } Label { @@ -101,10 +139,36 @@ Section { } CheckBox { + visible: textInputSection.isTextInput Layout.fillWidth: true text: qsTr("Auto scroll") backendValue: backendValues.autoScroll } + + CheckBox { + Layout.fillWidth: true + text: qsTr("Overwrite mode") + backendValue: backendValues.overwriteMode + } + + CheckBox { + Layout.fillWidth: true + text: qsTr("Persistent selection") + backendValue: backendValues.persistentSelection + } + + CheckBox { + Layout.fillWidth: true + text: qsTr("Select by mouse") + backendValue: backendValues.selectByMouse + } + + CheckBox { + visible: !textInputSection.isTextInput + Layout.fillWidth: true + text: qsTr("Select by keyboard") + backendValue: backendValues.selectByKeyboard + } } } } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSpecifics.qml index 615ce16aef..29702303b2 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSpecifics.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSpecifics.qml @@ -32,8 +32,7 @@ Column { anchors.right: parent.right StandardTextSection { - useLineEdit: false - showIsWrapping: false + showVerticalAlignment: true } Section { @@ -61,6 +60,18 @@ Column { } } + Section { + anchors.left: parent.left + anchors.right: parent.right + caption: qsTr("Selected Text Color") + + ColorEditor { + caption: qsTr("Selected Text Color") + backendValue: backendValues.selectedTextColor + supportGradient: false + } + } + FontSection { showStyle: false } diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextSpecifics.qml index 64ea73f1cd..550ffb3240 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextSpecifics.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextSpecifics.qml @@ -32,12 +32,11 @@ Column { anchors.right: parent.right StandardTextSection { - useLineEdit: true - showIsWrapping: true showVerticalAlignment: true showFormatProperty: true showElide: true showFontSizeMode: true + showLineHeight: true } Section { |