From 2b4c84d3db2d94f3ee588b1700cd4ed623fda919 Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Wed, 13 Sep 2017 17:17:48 +0300 Subject: [PATCH] Fix #3897: Remove value types combobox in Add row modal window --- src/qml/value-editor/editors/HashItemEditor.qml | 4 ++-- src/qml/value-editor/editors/SingleItemEditor.qml | 2 +- src/qml/value-editor/editors/SortedSetItemEditor.qml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qml/value-editor/editors/HashItemEditor.qml b/src/qml/value-editor/editors/HashItemEditor.qml index 9e3f026a..d738c7a3 100644 --- a/src/qml/value-editor/editors/HashItemEditor.qml +++ b/src/qml/value-editor/editors/HashItemEditor.qml @@ -21,7 +21,7 @@ AbstractEditor { value: "" enabled: root.active || root.state !== "edit" - showFormatters: root.state != "new" + showFormatters: root.state == "edit" } MultilineEditor { @@ -29,7 +29,7 @@ AbstractEditor { Layout.fillWidth: true Layout.fillHeight: true enabled: root.active || root.state !== "edit" - showFormatters: root.state != "new" + showFormatters: root.state == "edit" } function validateValue(callback) { diff --git a/src/qml/value-editor/editors/SingleItemEditor.qml b/src/qml/value-editor/editors/SingleItemEditor.qml index 3213a861..ee99fa15 100644 --- a/src/qml/value-editor/editors/SingleItemEditor.qml +++ b/src/qml/value-editor/editors/SingleItemEditor.qml @@ -18,7 +18,7 @@ AbstractEditor { Layout.fillHeight: true value: "" enabled: root.active || root.state !== "edit" - showFormatters: root.state != "new" + showFormatters: root.state == "edit" } function validateValue(callback) { diff --git a/src/qml/value-editor/editors/SortedSetItemEditor.qml b/src/qml/value-editor/editors/SortedSetItemEditor.qml index 8bb6dcf8..f5c1ff46 100644 --- a/src/qml/value-editor/editors/SortedSetItemEditor.qml +++ b/src/qml/value-editor/editors/SortedSetItemEditor.qml @@ -49,7 +49,7 @@ AbstractEditor { Layout.fillHeight: true value: "" enabled: root.active || root.state !== "edit" - showFormatters: root.state != "new" + showFormatters: root.state == "edit" } function validateValue(callback) {