summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Grulich <[email protected]>2017-03-15 12:23:56 +0100
committerJan Grulich <[email protected]>2017-03-15 12:23:56 +0100
commited0aea8216e42d9ded8a5ececcfe69224f7c230a (patch)
tree77ef028092a341ab9dd203d6b6013a442f3245cf
parent5440a96cac8cb5ad9a0f1bd0248a40c3f026f844 (diff)
Minor improvements to review delegate
-rw-r--r--discover/qml/ReviewDelegate.qml4
-rw-r--r--discover/qml/ReviewsPage.qml2
2 files changed, 3 insertions, 3 deletions
diff --git a/discover/qml/ReviewDelegate.qml b/discover/qml/ReviewDelegate.qml
index fe99155..0932ce5 100644
--- a/discover/qml/ReviewDelegate.qml
+++ b/discover/qml/ReviewDelegate.qml
@@ -26,7 +26,7 @@ AbstractListItem
{
id: item
visible: model.shouldShow
- height: Math.max(layout.implicitHeight, 0) + 2*Units.smallSpacing
+ height: Math.max(layout.implicitHeight, 0) + 3 * Units.smallSpacing
signal markUseful(bool useful)
@@ -50,7 +50,7 @@ AbstractListItem
Label {
id: content
Layout.fillWidth: true
- text: i18n("<b>%1</b> by %2", summary, reviewer)
+ text: i18n("<b>%1</b> by %2", summary, reviewer ? reviewer : i18n("unknown reviewer"))
}
Rating {
id: rating
diff --git a/discover/qml/ReviewsPage.qml b/discover/qml/ReviewsPage.qml
index 6eda115..e307ad4 100644
--- a/discover/qml/ReviewsPage.qml
+++ b/discover/qml/ReviewsPage.qml
@@ -51,7 +51,7 @@ Kirigami.OverlaySheet {
}
delegate: ReviewDelegate {
- width: reviewsView.implicitWidth
+ width: reviewsView.width
onMarkUseful: page.reviewsModel.markUseful(index, useful)
}
}