mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Fix warnings
This commit is contained in:
parent
5d486eca53
commit
6adbe5249d
4 changed files with 7 additions and 7 deletions
|
|
@ -40,7 +40,7 @@ PlasmaCore.IconItem {
|
||||||
|
|
||||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||||
|
|
||||||
visible: paSinkModel.preferredSink.muted
|
visible: paSinkModel.preferredSink && paSinkModel.preferredSink.muted
|
||||||
|
|
||||||
function iconName(volume, muted, prefix) {
|
function iconName(volume, muted, prefix) {
|
||||||
if (!prefix) {
|
if (!prefix) {
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ PlasmaCore.ColorScope {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width/3
|
width: parent.width/3
|
||||||
enabled: taskSwitcher.tasksCount > 0;
|
enabled: taskSwitcher && taskSwitcher.tasksCount > 0;
|
||||||
iconSource: "box"
|
iconSource: "box"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
plasmoid.nativeInterface.showDesktop = false;
|
plasmoid.nativeInterface.showDesktop = false;
|
||||||
|
|
@ -167,7 +167,7 @@ PlasmaCore.ColorScope {
|
||||||
width: parent.width/3
|
width: parent.width/3
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
iconSource: "start-here-kde"
|
iconSource: "start-here-kde"
|
||||||
enabled: taskSwitcher.tasksCount > 0
|
enabled: taskSwitcher && taskSwitcher.tasksCount > 0
|
||||||
checkable: true
|
checkable: true
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
taskSwitcher.hide();
|
taskSwitcher.hide();
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ Item {
|
||||||
PlasmaComponents.Label {
|
PlasmaComponents.Label {
|
||||||
id: activityNameLabel
|
id: activityNameLabel
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: activitiesView.nextContainment.activityName
|
text: activitiesView.nextContainment ? activitiesView.nextContainment.activityName : ""
|
||||||
}
|
}
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
OpacityAnimator {
|
OpacityAnimator {
|
||||||
|
|
@ -226,8 +226,8 @@ Item {
|
||||||
id: pinOverlay
|
id: pinOverlay
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
topMargin: containment.availableScreenRect.y
|
topMargin: containment ? containment.availableScreenRect.y : 0
|
||||||
bottomMargin: parent.height - containment.availableScreenRect.height - containment.availableScreenRect.y
|
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")
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,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
|
||||||
|
|
||||||
onContainmentChanged: {
|
onContainmentChanged: {
|
||||||
containment.parent = root;
|
containment.parent = root;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue