Warning, /plasma/kdeplasma-addons/applets/comic/package/contents/ui/configAdvanced.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.0 0008 import QtQuick.Controls 2.5 as Controls 0009 import QtQuick.Layouts 1.1 as Layouts 0010 0011 import org.kde.kirigami 2.20 as Kirigami 0012 import org.kde.plasma.plasmoid 0013 import org.kde.kcmutils as KCM 0014 0015 KCM.SimpleKCM { 0016 id: root 0017 0018 signal configurationChanged 0019 0020 function saveConfig() { 0021 Plasmoid.showErrorPicture = showErrorPicture.checked; 0022 Plasmoid.maxComicLimit = maxComicLimit.value; 0023 0024 Plasmoid.saveConfig(); 0025 Plasmoid.configChanged(); 0026 } 0027 0028 Kirigami.FormLayout { 0029 Component.onCompleted: { 0030 showErrorPicture.checked = Plasmoid.showErrorPicture; 0031 maxComicLimit.value = Plasmoid.maxComicLimit; 0032 } 0033 0034 Layouts.RowLayout { 0035 Kirigami.FormData.label: i18nc("@label:spinbox", "Comic cache:") 0036 0037 Controls.SpinBox { 0038 id: maxComicLimit 0039 stepSize: 1 0040 onValueChanged: root.configurationChanged(); 0041 } 0042 0043 Controls.Label { 0044 text: i18ncp("@item:valuesuffix spacing to number + unit", "strip per comic", "strips per comic") 0045 textFormat: Text.PlainText 0046 } 0047 } 0048 0049 Controls.CheckBox { 0050 id: showErrorPicture 0051 text: i18nc("@option:check", "Display error when downloading comic fails") 0052 onCheckedChanged: root.configurationChanged(); 0053 } 0054 } 0055 }