Warning, /plasma/kwin/src/kcms/virtualkeyboard/ui/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 0008 import QtQuick 0009 import QtQuick.Layouts 0010 import org.kde.kirigami 2.6 as Kirigami 0011 import org.kde.kcmutils as KCM 0012 0013 KCM.GridViewKCM { 0014 id: root 0015 0016 view.model: kcm.model 0017 view.currentIndex: kcm.model.inputMethodIndex(kcm.settings.inputMethod) 0018 0019 KCM.SettingStateBinding { 0020 configObject: kcm.settings 0021 settingName: "InputMethod" 0022 } 0023 0024 view.delegate: KCM.GridDelegate { 0025 text: model.display 0026 toolTip: model.toolTip 0027 0028 thumbnailAvailable: model.decoration 0029 thumbnail: Kirigami.Icon { 0030 anchors.fill: parent 0031 source: model.decoration 0032 } 0033 onClicked: { 0034 kcm.settings.inputMethod = model.desktopFileName; 0035 } 0036 onDoubleClicked: { 0037 kcm.save(); 0038 } 0039 } 0040 }