Changeset View
Changeset View
Standalone View
Standalone View
src/qml/common/InformationTable.qml
Show All 19 Lines | |||||
20 | import QtQuick.Controls 2.2 | 20 | import QtQuick.Controls 2.2 | ||
21 | import QtQuick.Layouts 1.3 | 21 | import QtQuick.Layouts 1.3 | ||
22 | import ktouch 1.0 | 22 | import ktouch 1.0 | ||
23 | 23 | | |||
24 | Item { | 24 | Item { | ||
25 | property alias model: repeator.model | 25 | property alias model: repeator.model | ||
26 | id: root | 26 | id: root | ||
27 | height: childrenRect.height | 27 | height: childrenRect.height | ||
28 | 28 | | |||
gottfried: Please remove all trailing whitespace. | |||||
29 | KColorScheme { | ||||
Please use KColorScheme instead of SystemPalette for color scheme colors. Most of KTouch uses the former now. It has some features like complementary colors SystemPalette lacks. gottfried: Please use `KColorScheme` instead of `SystemPalette` for color scheme colors.
Most of KTouch… | |||||
30 | id: colorScheme | ||||
31 | colorGroup: KColorScheme.Active | ||||
32 | colorSet: KColorScheme.View | ||||
33 | } | ||||
34 | | ||||
35 | | ||||
29 | Column { | 36 | Column { | ||
30 | id: column | 37 | id: column | ||
31 | spacing: 3 | 38 | spacing: 3 | ||
32 | width: parent.width | 39 | width: parent.width | ||
33 | height: childrenRect.height | 40 | height: childrenRect.height | ||
34 | 41 | | |||
35 | Repeater { | 42 | Repeater { | ||
36 | id: repeator | 43 | id: repeator | ||
Show All 16 Lines | 45 | Row { | |||
53 | Label { | 60 | Label { | ||
54 | id: valueLabel | 61 | id: valueLabel | ||
55 | width: parent.width - titleLabel.width - parent.spacing | 62 | width: parent.width - titleLabel.width - parent.spacing | ||
56 | horizontalAlignment: Text.AlignLeft | 63 | horizontalAlignment: Text.AlignLeft | ||
57 | verticalAlignment: Text.AlignBottom | 64 | verticalAlignment: Text.AlignBottom | ||
58 | text: model.modelData.text | 65 | text: model.modelData.text | ||
59 | wrapMode: Text.Wrap | 66 | wrapMode: Text.Wrap | ||
60 | height: Math.max(paintedHeight, titleLabel.paintedHeight) | 67 | height: Math.max(paintedHeight, titleLabel.paintedHeight) | ||
68 | color: colorScheme.normalText | ||||
61 | } | 69 | } | ||
62 | } | 70 | } | ||
63 | } | 71 | } | ||
64 | } | 72 | } | ||
65 | } | 73 | } |
Please remove all trailing whitespace.