Warning, /system/plasma-pk-updates/src/plasma/contents/ui/ConfigGeneral.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * Copyright 2015 Lukáš Tinkl <lukas@kde.org>
0003 *
0004 * This program is free software; you can redistribute it and/or modify
0005 * it under the terms of the GNU General Public License as published by
0006 * the Free Software Foundation; either version 2 of the License, or
0007 * (at your option) any later version.
0008 *
0009 * This program is distributed in the hope that it will be useful,
0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0012 * GNU General Public License for more details.
0013 *
0014 * You should have received a copy of the GNU General Public License
0015 * along with this program; if not, write to the Free Software
0016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA.
0017 */
0018
0019 import QtQuick 2.2
0020 import QtQuick.Controls 2.5
0021
0022 import org.kde.kirigami 2.5 as Kirigami
0023
0024 Kirigami.FormLayout {
0025 id: iconsPage
0026
0027 anchors.left: parent.left
0028 anchors.right: parent.right
0029
0030 property alias cfg_daily: daily.checked
0031 property alias cfg_weekly: weekly.checked
0032 property alias cfg_monthly: monthly.checked
0033 property alias cfg_check_on_mobile: mobile.checked
0034 property alias cfg_check_on_battery: battery.checked
0035
0036 ButtonGroup {
0037 id: intervalGroup
0038 }
0039
0040 RadioButton {
0041 id: daily
0042 Kirigami.FormData.label: i18nc("@label check interval for updates", "Check interval:")
0043 ButtonGroup.group: intervalGroup
0044 text: i18n("Daily")
0045 }
0046
0047 RadioButton {
0048 id: weekly
0049 ButtonGroup.group: intervalGroup
0050 text: i18n("Weekly")
0051 }
0052
0053 RadioButton {
0054 id: monthly
0055 ButtonGroup.group: intervalGroup
0056 text: i18n("Monthly")
0057 }
0058
0059 CheckBox {
0060 id: mobile
0061 Kirigami.FormData.label: i18nc("@label part of a sentence", "Check for updates when:")
0062 text: i18nc("@option:check part of a sentence: Check for updates when", "On a mobile connection")
0063 }
0064
0065 CheckBox {
0066 id: battery
0067 text: i18nc("@option:check part of a sentence: Check for updates when", "On battery")
0068 }
0069 }