Debian Codegraph @

plugins/CuraDrive/src/qml/components/BackupListItemDetailsRow.qml

raw
1 // Copyright (c) 2018 Ultimaker B.V.
2 // Cura is released under the terms of the LGPLv3 or higher.
3
4 import QtQuick 2.7
5 import QtQuick.Controls 2.1
6 import QtQuick.Layouts 1.3
7
8 import UM 1.5 as UM
9
10 RowLayout
11 {
12 id: detailsRow
13 width: parent.width
14 height: 40 * screenScaleFactor
15
16 property alias iconSource: icon.source
17 property alias label: detailName.text
18 property alias value: detailValue.text
19
20 UM.ColorImage
21 {
22 id: icon
23 width: 18 * screenScaleFactor
24 height: width
25 source: ""
26 color: UM.Theme.getColor("text")
27 }
28
29 UM.Label
30 {
31 id: detailName
32 elide: Text.ElideRight
33 Layout.minimumWidth: 50 * screenScaleFactor
34 Layout.maximumWidth: 100 * screenScaleFactor
35 Layout.fillWidth: true
36 }
37
38 UM.Label
39 {
40 id: detailValue
41 elide: Text.ElideRight
42 Layout.minimumWidth: 50 * screenScaleFactor
43 Layout.maximumWidth: 100 * screenScaleFactor
44 Layout.fillWidth: true
45 }
46 }