mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +00:00
--warnings
Make sure we don't call null pointers Do not reference old objects that don't exist anymore
This commit is contained in:
parent
9bda1b66ff
commit
59297a25f3
1 changed files with 2 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ Rectangle {
|
||||||
visible: false //adjust borders is run during setup. We want to avoid painting till completed
|
visible: false //adjust borders is run during setup. We want to avoid painting till completed
|
||||||
property Item containment
|
property Item containment
|
||||||
|
|
||||||
color: containment.backgroundHints == PlasmaCore.Types.NoBackground ? "transparent" : theme.textColor
|
color: (containment && containment.backgroundHints == PlasmaCore.Types.NoBackground) ? "transparent" : theme.textColor
|
||||||
|
|
||||||
function toggleWidgetExplorer(containment) {
|
function toggleWidgetExplorer(containment) {
|
||||||
console.log("Widget Explorer toggled");
|
console.log("Widget Explorer toggled");
|
||||||
|
|
@ -75,7 +75,7 @@ Rectangle {
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
topMargin: containment ? containment.availableScreenRect.y : 0
|
topMargin: containment ? containment.availableScreenRect.y : 0
|
||||||
bottomMargin: parent.height - containment ? (containment.availableScreenRect.height + containment.availableScreenRect.y) : 0
|
bottomMargin: parent.height - (containment ? (containment.availableScreenRect.height + containment.availableScreenRect.y) : 0)
|
||||||
}
|
}
|
||||||
z: 222
|
z: 222
|
||||||
source: Qt.resolvedUrl("Pin.qml")
|
source: Qt.resolvedUrl("Pin.qml")
|
||||||
|
|
@ -85,7 +85,6 @@ Rectangle {
|
||||||
containment.parent = root;
|
containment.parent = root;
|
||||||
containment.visible = true;
|
containment.visible = true;
|
||||||
containment.anchors.fill = root;
|
containment.anchors.fill = root;
|
||||||
panel.backgroundHints = containment.backgroundHints;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue