Warning, /plasma-mobile/calindori/src/contents/ui/PickerMonthView.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: 2019 Dimitris Kardarakos <dimkard@posteo.net>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 import QtQuick 2.7
0008 import QtQuick.Layouts 1.3
0009 import org.kde.calindori 0.1 as Calindori
0010 
0011 MonthView {
0012     id: root
0013 
0014     signal nextMonth
0015     signal previousMonth
0016 
0017     showHeader: false
0018     showMonthName: true
0019     displayedYear: mm.year
0020     displayedMonthName: _appLocale.standaloneMonthName(mm.month-1)
0021     daysModel: mm
0022     applicationLocale: _appLocale
0023     selectedDate: Calindori.CalendarController.localSystemDateTime()
0024     currentDate: Calindori.CalendarController.localSystemDateTime()
0025 
0026     Layout.preferredHeight: childrenRect.height
0027     Layout.preferredWidth: childrenRect.width
0028 
0029     onNextMonth: mm.goNextMonth()
0030     onPreviousMonth: mm.goPreviousMonth()
0031 
0032     Calindori.DaysOfMonthModel {
0033         id: mm
0034         year: selectedDate.getFullYear()
0035         month: selectedDate.getMonth() + 1
0036     }
0037 }