/* SPDX-FileCopyrightText: 2016 David Edmundson SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick 2.8 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.5 as QQC2 import org.kde.plasma.core 2.0 as PlasmaCore ColumnLayout { readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software QQC2.Label { text: Qt.formatTime(timeSource.data["Local"]["DateTime"]) color: config.textColor style: Text.Outline styleColor: config.textOutlineColor font.pointSize: config.timeFontPointSize Layout.alignment: Qt.AlignHCenter } QQC2.Label { text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate) color: config.textColor style: Text.Outline styleColor: config.textOutlineColor font.pointSize: config.dateFontPointSize Layout.alignment: Qt.AlignHCenter } PlasmaCore.DataSource { id: timeSource engine: "time" connectedSources: ["Local"] interval: 1000 } }