mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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:
parent
bb43a3fa32
commit
254ea5accb
1 changed files with 19 additions and 30 deletions
|
@ -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 {
|
|
||||||
id: logFlick
|
|
||||||
anchors.fill: parent
|
|
||||||
contentHeight: logContent.height
|
|
||||||
clip: true
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
width: logFlick.width
|
width: pageWidth
|
||||||
spacing: Kirigami.Units.smallSpacing
|
spacing: Kirigami.Units.smallSpacing
|
||||||
Kirigami.Heading {
|
Kirigami.Heading {
|
||||||
text: "Application Log"
|
text: "Application Log"
|
||||||
}
|
}
|
||||||
Kirigami.Label {
|
Kirigami.Label {
|
||||||
id: logContent
|
id: logContent
|
||||||
|
width: parent.width
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
|
||||||
text: manager.logText
|
text: manager.logText
|
||||||
}
|
}
|
||||||
|
Rectangle {
|
||||||
|
color: "transparent"
|
||||||
|
height: Kirigami.Units.gridUnit * 2
|
||||||
|
width: pageWidth
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue