diff options
| author | Aleix Pol <aleixpol@kde.org> | 2015-11-05 15:21:46 (GMT) |
|---|---|---|
| committer | Aleix Pol <aleixpol@kde.org> | 2015-11-05 15:35:43 (GMT) |
| commit | 5d86c610f63ee5e5c0de3508311d61b388880d58 (patch) | |
| tree | c5cc3f94943235b587792e7959ee98cfac18b076 | |
| parent | ca1ed9be6acf63d807021182c25e0a64e9780a23 (diff) | |
Show the application rating
| -rw-r--r-- | discover/qml/ApplicationDescription.qml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/discover/qml/ApplicationDescription.qml b/discover/qml/ApplicationDescription.qml index c5f8a59..51ddbaf 100644 --- a/discover/qml/ApplicationDescription.qml +++ b/discover/qml/ApplicationDescription.qml @@ -19,6 +19,7 @@ import QtQuick 2.1 import QtQuick.Controls 1.1 +import QtQuick.Layouts 1.1 import org.kde.kquickcontrolsaddons 2.0 import org.kde.muon 1.0 import org.kde.muon.discover 1.0 as Discover @@ -51,36 +52,36 @@ Column icon: application.icon } - Item { + ColumnLayout { id: header height: parent.height anchors { top: parent.top left: icon.right right: parent.right + bottom: icon.bottom leftMargin: 5 + bottomMargin: 5 } Heading { id: heading text: application.name - width: parent.width + Layout.fillWidth: true elide: Text.ElideRight font.bold: true } Label { - anchors { - left: parent.left - right: parent.right - top: heading.bottom - bottom: parent.bottom - } + Layout.fillWidth: true text: application.comment wrapMode: Text.WordWrap elide: Text.ElideRight maximumLineCount: 2 // verticalAlignment: Text.AlignVCenter } + Rating { + rating: application.rating.rating + } } } Item {width: 10; height: 20} |
