Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/global/Globals.qml
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Line(s) | 37 | QtObject { | |||
---|---|---|---|---|---|
129 | // The raw width of the popup's content item, the Dialog itself adds some margins | 129 | // The raw width of the popup's content item, the Dialog itself adds some margins | ||
130 | property int popupWidth: units.gridUnit * 18 | 130 | property int popupWidth: units.gridUnit * 18 | ||
131 | property int popupEdgeDistance: units.largeSpacing | 131 | property int popupEdgeDistance: units.largeSpacing | ||
132 | property int popupSpacing: units.largeSpacing | 132 | property int popupSpacing: units.largeSpacing | ||
133 | 133 | | |||
134 | // How much vertical screen real estate the notification popups may consume | 134 | // How much vertical screen real estate the notification popups may consume | ||
135 | readonly property real popupMaximumScreenFill: 0.75 | 135 | readonly property real popupMaximumScreenFill: 0.75 | ||
136 | 136 | | |||
137 | property var screenRect: plasmoid ? plasmoid.availableScreenRect : undefined | 137 | property var screenRect: plasmoid ? Qt.rect(plasmoid.screenGeometry.x + plasmoid.availableScreenRect.x, | ||
138 | plasmoid.screenGeometry.y + plasmoid.availableScreenRect.y, | ||||
139 | plasmoid.availableScreenRect.width, | ||||
140 | plasmoid.availableScreenRect.height) : undefined | ||||
138 | 141 | | |||
139 | onPopupLocationChanged: Qt.callLater(positionPopups) | 142 | onPopupLocationChanged: Qt.callLater(positionPopups) | ||
140 | onScreenRectChanged: Qt.callLater(positionPopups) | 143 | onScreenRectChanged: Qt.callLater(positionPopups) | ||
141 | 144 | | |||
142 | Component.onCompleted: checkInhibition() | 145 | Component.onCompleted: checkInhibition() | ||
143 | 146 | | |||
144 | function adopt(plasmoid) { | 147 | function adopt(plasmoid) { | ||
145 | // this doesn't emit a change, only in ratePlasmoids() it will detect the change | 148 | // this doesn't emit a change, only in ratePlasmoids() it will detect the change | ||
▲ Show 20 Lines • Show All 283 Lines • Show Last 20 Lines |