Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/CalendarView.qml
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 60 | anchors { | |||
---|---|---|---|---|---|
62 | left: parent.left | 62 | left: parent.left | ||
63 | margins: units.largeSpacing | 63 | margins: units.largeSpacing | ||
64 | } | 64 | } | ||
65 | 65 | | |||
66 | // Left column containing header, calendar, and event view | 66 | // Left column containing header, calendar, and event view | ||
67 | ColumnLayout { | 67 | ColumnLayout { | ||
68 | id: leftColumnLayout | 68 | id: leftColumnLayout | ||
69 | 69 | | |||
70 | Layout.minimumWidth: units.gridUnit * 18 | 70 | Layout.minimumWidth: units.gridUnit * 19 | ||
71 | 71 | | |||
72 | function dateString(format) { | 72 | function dateString(format) { | ||
73 | return Qt.formatDate(monthView.currentDate, format); | 73 | return Qt.formatDate(monthView.currentDate, format); | ||
74 | } | 74 | } | ||
75 | 75 | | |||
76 | // Header for the calendar: Current day, month, and year | 76 | // Header for the calendar: Current day, month, and year | ||
77 | RowLayout { | 77 | RowLayout { | ||
78 | id: currentDateHeaderLayout | 78 | id: currentDateHeaderLayout | ||
Show All 36 Lines | |||||
115 | 115 | | |||
116 | // Calendar | 116 | // Calendar | ||
117 | // TODO KF6: remove the `Item` wrapper, which this is only needed since | 117 | // TODO KF6: remove the `Item` wrapper, which this is only needed since | ||
118 | // PlasmaCalendar.MonthView internally has `anchors.fill:parent` set on | 118 | // PlasmaCalendar.MonthView internally has `anchors.fill:parent` set on | ||
119 | // it, erroneously expecting to never be in a Layout | 119 | // it, erroneously expecting to never be in a Layout | ||
120 | Item { | 120 | Item { | ||
121 | id: monthViewContainer | 121 | id: monthViewContainer | ||
122 | Layout.fillWidth: true | 122 | Layout.fillWidth: true | ||
123 | Layout.minimumHeight: units.gridUnit * 12 | 123 | Layout.minimumHeight: units.gridUnit * 19 | ||
124 | 124 | | |||
125 | PlasmaCalendar.MonthView { | 125 | PlasmaCalendar.MonthView { | ||
126 | id: monthView | 126 | id: monthView | ||
127 | borderOpacity: 0.25 | 127 | borderOpacity: 0.25 | ||
128 | today: root.tzDate | 128 | today: root.tzDate | ||
129 | showWeekNumbers: plasmoid.configuration.showWeekNumbers | 129 | showWeekNumbers: plasmoid.configuration.showWeekNumbers | ||
130 | } | 130 | } | ||
131 | } | 131 | } | ||
▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines |