Warning, /education/kwordquiz/src/qml/OptionsAction.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2023 Carl Schwan <carl@carlschwan.eu> 0002 // SPDX-License-Identifier: LGPL-2.0-or-later 0003 0004 import org.kde.kirigami 2.20 as Kirigami 0005 import org.kde.kwordquiz 1.0 0006 0007 Kirigami.Action { 0008 id: root 0009 0010 required property CardModel cardModel 0011 0012 text: i18nc("@action:button", "Options") 0013 0014 Kirigami.Action { 0015 text: i18nc("@action:inmenu", "Shuffle") 0016 checkable: true 0017 checked: Prefs.randomize 0018 onCheckedChanged: Prefs.randomize = true 0019 } 0020 0021 Kirigami.Action { 0022 text: `${root.cardModel.identifierLeft} -> ${root.cardModel.identifierRight}` 0023 checkable: true 0024 checked: Prefs.questionInLeftColumn 0025 onCheckedChanged: checked => Prefs.questionInLeftColumn = checked 0026 } 0027 0028 Kirigami.Action { 0029 text: `${root.cardModel.identifierRight} -> ${root.cardModel.identifierLeft}` 0030 checkable: true 0031 checked: Prefs.questionInRightColumn 0032 onCheckedChanged: Prefs.questionInRightColumn = checked 0033 } 0034 }