Changeset View
Changeset View
Standalone View
Standalone View
Modules/energy/package/contents/ui/main.qml
Context not available. | |||||
19 | 19 | | |||
---|---|---|---|---|---|
20 | import QtQuick 2.2 | 20 | import QtQuick 2.2 | ||
21 | import QtQuick.Controls 1.3 | 21 | import QtQuick.Controls 1.3 | ||
22 | import QtQuick.Controls 2.0 as QQC2 | ||||
22 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 | ||
23 | 24 | | |||
24 | import org.kde.kquickcontrolsaddons 2.0 | 25 | import org.kde.kquickcontrolsaddons 2.0 | ||
Context not available. | |||||
285 | visible: history.count > 1 | 286 | visible: history.count > 1 | ||
286 | } | 287 | } | ||
287 | 288 | | |||
288 | Label { | 289 | QQC2.Label { | ||
289 | Layout.fillWidth: true | 290 | Layout.fillWidth: true | ||
290 | Layout.minimumHeight: column.width / 3 | 291 | Layout.minimumHeight: column.width / 3 | ||
291 | Layout.maximumHeight: column.width / 3 | 292 | Layout.maximumHeight: column.width / 3 | ||
Context not available. | |||||
365 | RowLayout { | 366 | RowLayout { | ||
366 | Layout.fillWidth: true | 367 | Layout.fillWidth: true | ||
367 | 368 | | |||
368 | Label { | 369 | QQC2.Label { | ||
369 | Layout.fillWidth: true | 370 | Layout.fillWidth: true | ||
370 | elide: Text.ElideRight | 371 | elide: Text.ElideRight | ||
371 | text: model.prettyName || model.name | 372 | text: model.prettyName || model.name | ||
Context not available. | |||||
439 | spacing: units.smallSpacing * 2 | 440 | spacing: units.smallSpacing * 2 | ||
440 | visible: valueLabel.text !== "" | 441 | visible: valueLabel.text !== "" | ||
441 | 442 | | |||
442 | Label { | 443 | QQC2.Label { | ||
443 | Layout.minimumWidth: detailsColumn.legendWidth + units.gridUnit | 444 | Layout.minimumWidth: detailsColumn.legendWidth + units.gridUnit | ||
444 | horizontalAlignment: Text.AlignRight | 445 | horizontalAlignment: Text.AlignRight | ||
445 | text: i18n("%1:", modelData.label) | 446 | text: i18n("%1:", modelData.label) | ||
Context not available. | |||||
452 | } | 453 | } | ||
453 | } | 454 | } | ||
454 | 455 | | |||
455 | Label { | 456 | QQC2.Label { | ||
456 | id: valueLabel | 457 | id: valueLabel | ||
457 | Layout.fillWidth: true | 458 | Layout.fillWidth: true | ||
458 | text: { | 459 | text: { | ||
Context not available. |