Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/FullRepresentation.qml
Show All 35 Lines | |||||
36 | 36 | | |||
37 | PlasmaComponents3.Page { | 37 | PlasmaComponents3.Page { | ||
38 | // TODO these should be configurable in the future | 38 | // TODO these should be configurable in the future | ||
39 | readonly property int dndMorningHour: 6 | 39 | readonly property int dndMorningHour: 6 | ||
40 | readonly property int dndEveningHour: 20 | 40 | readonly property int dndEveningHour: 20 | ||
41 | Layout.fillHeight: plasmoid.formFactor === PlasmaCore.Types.Vertical | 41 | Layout.fillHeight: plasmoid.formFactor === PlasmaCore.Types.Vertical | ||
42 | 42 | | |||
43 | // HACK forward focus to the list | 43 | // HACK forward focus to the list | ||
44 | onActiveFocusChanged: { | 44 | function onActiveFocusChanged() { | ||
45 | if (activeFocus) { | 45 | if (activeFocus) { | ||
46 | list.forceActiveFocus(); | 46 | list.forceActiveFocus(); | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | Connections { | 50 | Connections { | ||
51 | target: plasmoid | 51 | target: plasmoid | ||
52 | onExpandedChanged: { | 52 | function onExpandedChanged() { | ||
53 | if (plasmoid.expanded) { | 53 | if (plasmoid.expanded) { | ||
54 | list.positionViewAtBeginning(); | 54 | list.positionViewAtBeginning(); | ||
55 | list.currentIndex = -1; | 55 | list.currentIndex = -1; | ||
56 | } | 56 | } | ||
57 | } | 57 | } | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | PlasmaCore.Svg { | 60 | PlasmaCore.Svg { | ||
▲ Show 20 Lines • Show All 567 Lines • Show Last 20 Lines |