/** * Battery Buddy, a Sailfish application to prolong battery lifetime * * Copyright (C) 2019-2020 Matti Viljanen * * Battery Buddy is free software: you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * Battery Buddy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. You should have received a copy of the GNU * General Public License along with Battery Buddy. If not, see . * * Author: Matti Viljanen */ import QtQuick 2.2 import Sailfish.Silica 1.0 import "../components" Page { id: logPage allowedOrientations: Orientation.Portrait | Orientation.Landscape | Orientation.LandscapeInverted SilicaFlickable { id: logFlickable anchors.fill: parent contentHeight: header.height + column.height PageHeader { id: header title: qsTr("View log") } Column { id: column anchors { top: header.bottom horizontalCenter: parent.horizontalCenter } width: parent.width - 2*Theme.horizontalPageMargin spacing: Theme.paddingLarge MyLabel { text: logger.readLogfile(settings.logFilename) font.pixelSize: Theme.fontSizeTiny } } } }