From 512382dfefb10f0a4bd6c4cbc2a77f1d518cdece Mon Sep 17 00:00:00 2001 From: RensDofferhoff <20978635+RensDofferhoff@users.noreply.github.com> Date: Mon, 22 May 2023 08:50:40 +0200 Subject: [PATCH] Update jasp-qml-guide.md --- Docs/development/jasp-qml-guide.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Docs/development/jasp-qml-guide.md b/Docs/development/jasp-qml-guide.md index b9a39d9b14..e0822f2b54 100644 --- a/Docs/development/jasp-qml-guide.md +++ b/Docs/development/jasp-qml-guide.md @@ -44,6 +44,7 @@ Table of Contents: - [Layout.rowSpan](#layoutrowspan) - [Layout.columnSpan](#layoutcolumnspan) - [Connecting Multiple Components](#connecting-multiple-components) + - [Configurable Constants](#configurable-constants) - [An Example](#an-example) - [1. Specifying Imports](#1-specifying-imports) - [2. Adding the Form](#2-adding-the-form) @@ -897,7 +898,7 @@ Example: id: cr name: "cr" indexDefaultValue: 0 - startValue: "high" + startValue: "high" values: [ { label: qsTr("High"), value: "high"}, { label: qsTr("Low"), value: "low"}, @@ -906,8 +907,8 @@ Example: PercentField { - name: "crCustom" - defaultValue: form.getConstant(ir.value, ir.value == "high" ? 100 : 50) + name: "crCustom" + defaultValue: form.getConstant(ir.value, ir.value == "high" ? 100 : 50) } ```