diff --git a/src/qml/danbooruimageview.qml b/src/qml/danbooruimageview.qml index cc6f48f..216d81a 100644 --- a/src/qml/danbooruimageview.qml +++ b/src/qml/danbooruimageview.qml @@ -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 { } } - } - - }