QML UI: redo application log page

This makes things wrap and scroll correctly again for me

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-02 10:54:46 -05:00
parent bb43a3fa32
commit 254ea5accb

View file

@ -15,37 +15,26 @@ Kirigami.ScrollablePage {
objectName: "Log" objectName: "Log"
title: "Application Log" title: "Application Log"
/* this can be done by hitting the back key property int pageWidth: subsurfaceTheme.columnWidth - Kirigami.Units.smallSpacing
contextualActions: [
Action {
text: "Close Log"
iconName: "dialog-cancel"
onTriggered: {
stackView.pop()
contextDrawer.close()
}
}
]
*/
Flickable { ColumnLayout {
id: logFlick width: pageWidth
anchors.fill: parent spacing: Kirigami.Units.smallSpacing
contentHeight: logContent.height Kirigami.Heading {
clip: true text: "Application Log"
ColumnLayout { }
width: logFlick.width Kirigami.Label {
spacing: Kirigami.Units.smallSpacing id: logContent
Kirigami.Heading { width: parent.width
text: "Application Log" Layout.preferredWidth: parent.width
} Layout.maximumWidth: parent.width
Kirigami.Label { wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
id: logContent text: manager.logText
Layout.preferredWidth: parent.width }
Layout.maximumWidth: parent.width Rectangle {
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere color: "transparent"
text: manager.logText height: Kirigami.Units.gridUnit * 2
} width: pageWidth
} }
} }
} }