Warning, /plasma/plasma-mobile/kcms/virtualkeyboard/ui/languages.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2020 Bhushan Shah <bshah@kde.org>
0003
0004 SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006
0007 import QtQuick 2.7
0008 import QtQuick.Layouts 1.1
0009 import QtQuick.Controls 2.11 as QQC2
0010
0011 import org.kde.kcmutils as KCM
0012 import org.kde.kitemmodels 1.0 as KItemModel
0013
0014 import org.kde.kcm.virtualkeyboard 1.0
0015
0016 KCM.ScrollViewKCM {
0017 id: root
0018
0019 title: i18n("Languages")
0020
0021 view: ListView {
0022 id: languageList
0023
0024 clip: true
0025
0026 model: KItemModel.KSortFilterProxyModel {
0027 sourceModel: kcm.languageModel
0028 sortRoleName: "name"
0029 sortOrder: Qt.AscendingOrder
0030 }
0031
0032 delegate: QQC2.CheckDelegate {
0033 width: ListView.view.width
0034 text: model.name
0035 checked: model.enabled
0036 onToggled: {
0037 model.enabled = checked
0038 }
0039 }
0040 }
0041
0042 footer: RowLayout {
0043 QQC2.Button {
0044 text: i18n("Apply")
0045 icon.name: "dialog-ok"
0046 onClicked: kcm.pop()
0047 Layout.alignment: Qt.AlignRight
0048 }
0049 }
0050 }