Warning, /education/gcompris/src/activities/share/ActivityConfig.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - ActivityConfig.qml 0002 * 0003 * SPDX-FileCopyrightText: 2020 Shubham Mishra <shivam828787@gmail.com> 0004 * 0005 * Authors: 0006 * Shubham Mishra <shivam828787@gmail.com> 0007 * 0008 * SPDX-License-Identifier: GPL-3.0-or-later 0009 */ 0010 import QtQuick 2.12 0011 import "../../core" 0012 0013 Item { 0014 id: activityConfiguration 0015 property Item background 0016 property bool easyMode: true 0017 width: flick.width 0018 0019 Column { 0020 id: column 0021 spacing: 10 0022 width: parent.width 0023 0024 GCDialogCheckBox { 0025 id: easyModeBox 0026 text: qsTr("Display counters") 0027 checked: easyMode // This is available in all editors. 0028 onCheckedChanged: { 0029 easyMode = checked 0030 } 0031 } 0032 } 0033 0034 property var dataToSave 0035 0036 function setDefaultValues() { 0037 if(dataToSave["mode"] === undefined) { 0038 dataToSave["mode"] = "true"; 0039 } 0040 easyModeBox.checked = (dataToSave.mode === "true") 0041 } 0042 0043 function saveValues() { 0044 dataToSave = { "mode": "" + easyMode } 0045 } 0046 }