Warning, /plasma-mobile/calindori/src/contents/ui/DayPage.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dimitris Kardarakos <dimkard@posteo.net> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 import QtQuick 2.7 0008 import org.kde.kirigami 2.0 as Kirigami 0009 import org.kde.calindori 0.1 as Calindori 0010 0011 Kirigami.ScrollablePage { 0012 id: root 0013 0014 property bool wideScreen 0015 0016 title: dayView.selectedDate.toLocaleDateString(_appLocale, Locale.ShortFormat) 0017 0018 actions { 0019 left: Kirigami.Action { 0020 iconName: "arrow-left" 0021 text: i18n("Previous day") 0022 displayHint: Kirigami.Action.IconOnly 0023 onTriggered: dayView.previousDay() 0024 } 0025 0026 main: Kirigami.Action { 0027 iconName: "view-calendar-day" 0028 text: i18n("Today") 0029 0030 onTriggered: dayView.goToday() 0031 } 0032 0033 right: Kirigami.Action { 0034 iconName: "arrow-right" 0035 text: i18n("Next day") 0036 displayHint: Kirigami.Action.IconOnly 0037 onTriggered: dayView.nextDay() 0038 } 0039 } 0040 0041 DayView { 0042 id: dayView 0043 0044 cal: Calindori.CalendarController.activeCalendar 0045 wideScreen: root.wideScreen 0046 0047 onSelectedDateChanged: { 0048 if (pageStack.depth > 1) { 0049 pageStack.pop(null); 0050 } 0051 } 0052 } 0053 }