Warning, /plasma/plasma-workspace/applets/calendar/package/contents/ui/configGeneral.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 SPDX-FileCopyrightText: 2015 Martin Klapetek <mklapetek@kde.org>
0003
0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006
0007 import QtQuick 2.5
0008 import QtQuick.Controls 2.5 as QtControls
0009 import org.kde.kirigami 2.5 as Kirigami
0010 import org.kde.kcmutils as KCM
0011
0012 KCM.SimpleKCM {
0013 property alias cfg_showWeekNumbers: showWeekNumbers.checked
0014 property string cfg_compactDisplay
0015
0016 Kirigami.FormLayout {
0017 QtControls.CheckBox {
0018 id: showWeekNumbers
0019
0020 Kirigami.FormData.label: i18n("Calendar version:")
0021
0022 text: i18n("Show week numbers")
0023 }
0024
0025 Item {
0026 Kirigami.FormData.isSection: true
0027 }
0028
0029
0030 QtControls.RadioButton {
0031 Kirigami.FormData.label: i18nc("What information is shown in the calendar icon", "Compact version:")
0032
0033 text: i18nc("Show the number of the day (eg. 31) in the icon", "Show day of the month")
0034
0035 checked: cfg_compactDisplay == "d"
0036 onCheckedChanged: if (checked) cfg_compactDisplay = "d"
0037 }
0038 QtControls.RadioButton {
0039 text: i18nc("Show the week number (eg. 50) in the icon", "Show week number")
0040
0041 checked: cfg_compactDisplay == "w"
0042 onCheckedChanged: if (checked) cfg_compactDisplay = "w"
0043 }
0044 }
0045 }