Commit 36bf9e7a authored by Marco Martin's avatar Marco Martin
Browse files

fix layout of overlaysheet

Summary:
makes the overlaysheet howit's supposed to be rendered:
since it's "global" in the app, it should be parented to the
applicationwindow overlay, and have a "non 100%" width, but something
based upon readability

Test Plan: {F7774628}

Reviewers: #discover_software_store, apol

Reviewed By: #discover_software_store, apol

Subscribers: apol, ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25430
parent 0ff74e4a
...@@ -39,9 +39,14 @@ Kirigami.AbstractListItem { ...@@ -39,9 +39,14 @@ Kirigami.AbstractListItem {
readonly property var v3: Component { readonly property var v3: Component {
id: sheet id: sheet
Kirigami.OverlaySheet { Kirigami.OverlaySheet {
parent: applicationWindow().overlay
header: Kirigami.Heading {
text: i18n("Tasks")
}
contentItem: ListView { contentItem: ListView {
id: tasksView
spacing: 0 spacing: 0
implicitWidth: Kirigami.Units.gridUnit * 30
Component { Component {
id: listenerComp id: listenerComp
...@@ -61,8 +66,7 @@ Kirigami.AbstractListItem { ...@@ -61,8 +66,7 @@ Kirigami.AbstractListItem {
} }
readonly property QtObject listener: listenerComp.createObject(del, (model.transaction.resource ? {resource: model.transaction.resource} : {transaction: model.transaction})) readonly property QtObject listener: listenerComp.createObject(del, (model.transaction.resource ? {resource: model.transaction.resource} : {transaction: model.transaction}))
ColumnLayout { contentItem: ColumnLayout {
width: parent.width
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment