Warning, /plasma-mobile/calindori/src/contents/ui/IncidenceCardData.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 ColumnLayout {
0014     id: root
0015 
0016     property var dataModel
0017     spacing: Kirigami.Units.largeSpacing
0018 
0019     RowLayout {
0020         visible: dataModel && (dataModel.location != "")
0021         spacing: Kirigami.Units.smallSpacing
0022         Layout.fillWidth: true
0023 
0024         Kirigami.Icon {
0025             source: "gps"
0026             width: Kirigami.Units.iconSizes.small
0027             height: width
0028         }
0029 
0030         Controls2.Label {
0031             wrapMode: Text.WordWrap
0032             text: dataModel && dataModel.location
0033             Layout.fillWidth: true
0034         }
0035     }
0036 
0037     Kirigami.Separator {
0038         visible: dataModel && (dataModel.description != "")
0039         Layout.fillWidth: true
0040     }
0041 
0042     Controls2.Label {
0043         visible: dataModel && (dataModel.description != "")
0044         wrapMode: Text.WordWrap
0045         text: dataModel && dataModel.description
0046         Layout.fillWidth: true
0047     }
0048 }