Warning, /education/gcompris/src/activities/graduated_line_use/resource/1/Data.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - graduated_line - Data.qml 0002 * 0003 * SPDX-FileCopyrightText: 2023 Bruno Anselme <be.root@free.fr> 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 * Authors: 0006 * Bruno Anselme <be.root@free.fr> 0007 * 0008 * When fitLimits is true: 0009 * - the number of steps must be a divisor of the upper limit 0010 * - segments is not used (empty) 0011 * range[min, max] (pair) ruler's min and max values 0012 * steps[a, b, c, ...] (list) of possible step values 0013 * segments[min, max] (pair) number of segments (random within interval). Unused when fitLimits is true 0014 * 0015 * Number of graduations = number of segments + 1 0016 * Constraint : segments[max] * steps[max] <= range[max] (Minimal check made with js: console warning and values adjusted) 0017 */ 0018 import GCompris 1.0 0019 0020 Data { 0021 objective: qsTr("Graduation to find between 1 and 5.") 0022 difficulty: 1 0023 data: [ 0024 { "title": objective, 0025 "rules": { 0026 "nbOfQuestions": 6, 0027 "fitLimits": true, 0028 "range": [1,5], 0029 "steps": [1], 0030 "segments": [] 0031 } 0032 } 0033 ] 0034 }