Warning, /plasma-mobile/calindori/src/contents/ui/TodoCard.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dimitris Kardarakos <dimkard@posteo.net> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 import QtQuick 2.7 0008 import QtQuick.Controls 2.0 as Controls2 0009 import QtQuick.Layouts 1.3 0010 import org.kde.kirigami 2.4 as Kirigami 0011 import org.kde.calindori 0.1 as Calindori 0012 0013 Kirigami.Card { 0014 id: root 0015 0016 property var dataModel 0017 0018 banner.title: dataModel && dataModel.summary 0019 banner.titleLevel: 3 0020 clip: true 0021 0022 contentItem: Column { 0023 enabled: dataModel && !dataModel.completed 0024 spacing: Kirigami.Units.largeSpacing 0025 topPadding: 0 0026 bottomPadding: Kirigami.Units.largeSpacing 0027 0028 Row { 0029 visible: dataModel && dataModel.validStartDt 0030 width: root.availableWidth 0031 spacing: Kirigami.Units.smallSpacing 0032 0033 Kirigami.Icon { 0034 source: "view-calendar-day" 0035 width: Kirigami.Units.iconSizes.small 0036 height: width 0037 } 0038 0039 Controls2.Label { 0040 wrapMode: Text.WordWrap 0041 text: "%1 %2".arg(dataModel.displayStartDate).arg(dataModel.displayStartTime) 0042 } 0043 } 0044 0045 Row { 0046 visible: dataModel && dataModel.validDueDt 0047 width: root.availableWidth 0048 spacing: Kirigami.Units.smallSpacing 0049 0050 Kirigami.Icon { 0051 source: "view-calendar-timeline" 0052 width: Kirigami.Units.iconSizes.small 0053 height: width 0054 } 0055 0056 Controls2.Label { 0057 wrapMode: Text.WordWrap 0058 text: "%1 %2".arg(dataModel.displayDueDate).arg(dataModel.displayDueTime) 0059 } 0060 } 0061 0062 IncidenceCardData { 0063 dataModel: root.dataModel 0064 width: root.availableWidth 0065 } 0066 } 0067 }