open settings app

close panel when app launches
This commit is contained in:
Marco Martin 2017-09-04 18:15:49 +02:00
parent 89f1f1a8af
commit d93ec09964
4 changed files with 10 additions and 3 deletions

View file

@ -157,7 +157,7 @@ Item {
ListModel { ListModel {
id: notificationsModel id: notificationsModel
/* ListElement { ListElement {
source: "call1Source" source: "call1Source"
appIcon: "call-start" appIcon: "call-start"
summary: "Missed call from Joe" summary: "Missed call from Joe"
@ -178,7 +178,7 @@ Item {
appName: "Message" appName: "Message"
summary: "July: Hello?" summary: "July: Hello?"
actions: [] actions: []
}*/ }
} }
ListView { ListView {

View file

@ -68,7 +68,7 @@ Item {
text: "Settings" text: "Settings"
icon: "configure" icon: "configure"
enabled: false enabled: false
settingsCommand: "plasma-mobile-settings" settingsCommand: "plasma-settings"
toggleFunction: "" toggleFunction: ""
delegate: "" delegate: ""
} }

View file

@ -54,10 +54,16 @@ FullScreenPanel {
} }
} }
onActiveChanged: {
if (!active) {
close();
}
}
onVisibleChanged: { onVisibleChanged: {
if (visible) { if (visible) {
window.width = Screen.width; window.width = Screen.width;
window.height = Screen.height; window.height = Screen.height;
window.requestActivate();
} }
} }
SequentialAnimation { SequentialAnimation {

View file

@ -240,6 +240,7 @@ PlasmaCore.ColorScope {
property var applet property var applet
height: applet ? applet.fullRepresentationItem.Layout.maximumHeight : 0 height: applet ? applet.fullRepresentationItem.Layout.maximumHeight : 0
property int minimumHeight: applet ? applet.fullRepresentationItem.Layout.minimumHeight : 0 property int minimumHeight: applet ? applet.fullRepresentationItem.Layout.minimumHeight : 0
onHeightChanged: slidingPanel.updateState();
} }
} }
} }