Changeset View
Changeset View
Standalone View
Standalone View
applets/digital-clock/package/contents/ui/CalendarView.qml
Show All 27 Lines | 25 | Item { | |||
---|---|---|---|---|---|
28 | Layout.minimumWidth: _minimumWidth | 28 | Layout.minimumWidth: _minimumWidth | ||
29 | Layout.minimumHeight: _minimumHeight | 29 | Layout.minimumHeight: _minimumHeight | ||
30 | 30 | | |||
31 | // The "sensible" values | 31 | // The "sensible" values | ||
32 | property int _minimumWidth: (showAgenda ? agendaViewWidth : 0) + monthViewWidth | 32 | property int _minimumWidth: (showAgenda ? agendaViewWidth : 0) + monthViewWidth | ||
33 | property int _minimumHeight: units.gridUnit * 14 | 33 | property int _minimumHeight: units.gridUnit * 14 | ||
34 | Layout.preferredWidth: _minimumWidth | 34 | Layout.preferredWidth: _minimumWidth | ||
35 | Layout.preferredHeight: _minimumHeight * 1.5 | 35 | Layout.preferredHeight: _minimumHeight * 1.5 | ||
36 | Layout.maximumWidth: Layout.preferredWidth | ||||
37 | Layout.maximumHeight: Layout.preferredHeight | ||||
kmaterka: As maximum != minimum in this case, popup can be resized (and tiled), but on next show size is… | |||||
36 | 38 | | |||
37 | readonly property bool showAgenda: PlasmaCalendar.EventPluginsManager.enabledPlugins.length > 0 | 39 | readonly property bool showAgenda: PlasmaCalendar.EventPluginsManager.enabledPlugins.length > 0 | ||
38 | 40 | | |||
39 | readonly property int agendaViewWidth: _minimumHeight * 1.5 | 41 | readonly property int agendaViewWidth: _minimumHeight * 1.5 | ||
40 | readonly property int monthViewWidth: monthView.showWeekNumbers ? Math.round(_minimumHeight * 1.75) : Math.round(_minimumHeight * 1.5) | 42 | readonly property int monthViewWidth: monthView.showWeekNumbers ? Math.round(_minimumHeight * 1.75) : Math.round(_minimumHeight * 1.5) | ||
41 | 43 | | |||
42 | property int boxWidth: (agendaViewWidth + monthViewWidth - ((showAgenda ? 3 : 4) * spacing)) / 2 | 44 | property int boxWidth: (agendaViewWidth + monthViewWidth - ((showAgenda ? 3 : 4) * spacing)) / 2 | ||
43 | 45 | | |||
▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines |
As maximum != minimum in this case, popup can be resized (and tiled), but on next show size is restored