/* SPDX-FileCopyrightText: 2019 Marco Martin SPDX-FileCopyrightText: 2019 David Edmundson SPDX-FileCopyrightText: 2019 Arjen Hiemstra SPDX-FileCopyrightText: 2019 Kai Uwe Broulik SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick import QtQuick.Controls as QQC2 import QtQuick.Layouts import org.kde.kirigami as Kirigami import org.kde.ksysguard.sensors as Sensors import org.kde.ksysguard.faces as Faces import org.kde.quickcharts as Charts import org.kde.quickcharts.controls as ChartControls Faces.CompactSensorFace { id: root contentItem: ColumnLayout { LineChart { Layout.fillWidth: true Layout.fillHeight: true Layout.alignment: Qt.AlignCenter controller: root.controller } QQC2.Label { id: label visible: root.formFactor == Faces.SensorFace.Planar && root.controller.showTitle && text.length > 0 Layout.alignment: Qt.AlignTop Layout.fillWidth: true horizontalAlignment: Text.AlignHCenter text: root.controller.title } } }