Line up text with the thumbnail

This commit is contained in:
Luca Beltrame 2015-12-17 22:25:49 +01:00
parent 857d34c422
commit 7854974891

View file

@ -239,15 +239,18 @@ Rectangle {
} }
Text { Text {
id: sizeText id: sizeText
anchors.left: pixItem.left
text: i18n("File size: %1", KCoreAddons.Format.formatByteSize(fileSize)) text: i18n("File size: %1", KCoreAddons.Format.formatByteSize(fileSize))
} }
Text { Text {
id: resolutionText id: resolutionText
anchors.left: pixItem.left
text: i18n("Resolution: %1 x %2", resolution.width, resolution.height) text: i18n("Resolution: %1 x %2", resolution.width, resolution.height)
} }
Text { Text {
id: ratingText id: ratingText
anchors.left: pixItem.left
text: { text: {
if (rating == DanbooruPost.Safe) { if (rating == DanbooruPost.Safe) {
@ -283,6 +286,7 @@ Rectangle {
model: danbooruModel model: danbooruModel
delegate: viewDelegate delegate: viewDelegate
interactive: true
focus: true focus: true
Component.onCompleted: { currentIndex = -1; forceActiveFocus()} Component.onCompleted: { currentIndex = -1; forceActiveFocus()}