From 0a22b340e9f529aa0077c39a056a2c84ac7b1ebb Mon Sep 17 00:00:00 2001 From: Sebastian Kügler Date: Mon, 7 Dec 2015 23:26:30 +0100 Subject: simplify and style log page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - less instantiated objects inside each other - add page heading - allow wrapping of text Signed-off-by: Sebastian Kügler --- qt-mobile/qml/Log.qml | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/qt-mobile/qml/Log.qml b/qt-mobile/qml/Log.qml index c2a00c8c3..9e29a4d00 100644 --- a/qt-mobile/qml/Log.qml +++ b/qt-mobile/qml/Log.qml @@ -20,29 +20,16 @@ MobileComponents.Page { anchors.fill: parent contentHeight: logContent.height clip: true - Item { - id: logContent - width: logFlick.width - height: childrenRect.height + MobileComponents.Units.smallSpacing * 2 - - ColumnLayout { - anchors { - left: parent.left - right: parent.right - top: parent.top - margins: MobileComponents.Units.smallSpacing - } - spacing: MobileComponents.Units.smallSpacing - - Text { - width: logWindow.width - wrapMode: Text.Wrap - text: manager.logText - } - Item { - height: MobileComponents.Units.gridUnit * 3 - width: height - } + ColumnLayout { + spacing: MobileComponents.Units.smallSpacing + MobileComponents.Heading { + text: "Application Log" + } + MobileComponents.Label { + id: logContent + width: logFlick.width + wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere + text: manager.logText } } } -- cgit v1.2.3-70-g09d2