Minor formatting changes

This commit is contained in:
Luca Beltrame 2015-03-21 23:28:41 +01:00
parent 2a7f9a79d7
commit 18e49e8388

View file

@ -112,17 +112,12 @@ Rectangle {
}
onDoubleClicked: {
// TODO: This needs to download the medium-size image (sample_url)
imageOverlay.imageDoubleClicked(sampleUrl, tags)
}
onEntered: {
viewButton.opacity = 1
downloadButton.opacity = 1
}
onExited: {
@ -151,7 +146,6 @@ Rectangle {
}
Behavior on opacity {
NumberAnimation {
duration: 200
}
@ -180,7 +174,6 @@ Rectangle {
}
Behavior on opacity {
NumberAnimation {
duration: 200
}
@ -259,7 +252,6 @@ Rectangle {
}
Behavior on opacity {
NumberAnimation {
duration: 200
}
@ -268,8 +260,9 @@ Rectangle {
}
}
Image {
Image {
// This handles displaying the medium-resolution image as preview
signal imageDoubleClicked(url url, var tags)
id: imageOverlay
@ -282,7 +275,6 @@ Rectangle {
visible: width > 0
z: 1
Button {
id: closeButton
anchors.top: parent.top
@ -294,6 +286,7 @@ Rectangle {
iconName: "window-close"
visible: false
z: 2
tooltip: i18n("Click to close image preview")
onClicked: {
closeButton.visible = false
@ -326,8 +319,6 @@ Rectangle {
color: "white"
visible: false
}
}
Keys.onEscapePressed: {
@ -345,8 +336,6 @@ Rectangle {
} else {
overlayText.text = i18n("Tags: %1", tags.slice(0, 10).join(", "))
}
}
onStatusChanged: {
@ -381,8 +370,6 @@ Rectangle {
} else {
overlayBox.height = imageOverlay.paintedHeight * 0.05
}
}
}
@ -402,9 +389,6 @@ Rectangle {
}
}
}
}