Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/PlasmoidPopupsContainer.qml
Show All 38 Lines | 28 | StackView { | |||
---|---|---|---|---|---|
39 | property bool appletHasHeading: false | 39 | property bool appletHasHeading: false | ||
40 | property bool mergeHeadings: appletHasHeading && activeApplet.fullRepresentationItem.header.visible | 40 | property bool mergeHeadings: appletHasHeading && activeApplet.fullRepresentationItem.header.visible | ||
41 | property int headingHeight: mergeHeadings ? activeApplet.fullRepresentationItem.header.height : 0 | 41 | property int headingHeight: mergeHeadings ? activeApplet.fullRepresentationItem.header.height : 0 | ||
42 | /* Footer */ | 42 | /* Footer */ | ||
43 | property bool appletHasFooter: false | 43 | property bool appletHasFooter: false | ||
44 | property bool mergeFooters: appletHasFooter && activeApplet.fullRepresentationItem.footer.visible | 44 | property bool mergeFooters: appletHasFooter && activeApplet.fullRepresentationItem.footer.visible | ||
45 | property int footerHeight: mergeFooters ? activeApplet.fullRepresentationItem.footer.height : 0 | 45 | property int footerHeight: mergeFooters ? activeApplet.fullRepresentationItem.footer.height : 0 | ||
46 | 46 | | |||
47 | onActiveAppletChanged: { | 47 | function onActiveAppletChanged() { | ||
48 | mainStack.appletHasHeading = false | 48 | mainStack.appletHasHeading = false | ||
49 | mainStack.appletHasFooter = false | 49 | mainStack.appletHasFooter = false | ||
50 | if (activeApplet != null) { | 50 | if (activeApplet != null) { | ||
51 | //reset any potential anchor | 51 | //reset any potential anchor | ||
52 | activeApplet.fullRepresentationItem.anchors.left = undefined; | 52 | activeApplet.fullRepresentationItem.anchors.left = undefined; | ||
53 | activeApplet.fullRepresentationItem.anchors.top = undefined; | 53 | activeApplet.fullRepresentationItem.anchors.top = undefined; | ||
54 | activeApplet.fullRepresentationItem.anchors.right = undefined; | 54 | activeApplet.fullRepresentationItem.anchors.right = undefined; | ||
55 | activeApplet.fullRepresentationItem.anchors.bottom = undefined; | 55 | activeApplet.fullRepresentationItem.anchors.bottom = undefined; | ||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |