Load fullscreenimage directly. Tweak reply UI.

This commit is contained in:
Black Hat
2019-05-04 21:05:59 +08:00
parent ce688e9756
commit ef469ee347
9 changed files with 40 additions and 55 deletions

View File

@@ -2,7 +2,7 @@ import QtQuick 2.12
import QtQuick.Controls 2.12
ApplicationWindow {
property string eventId
property string filename
property url localPath
id: root
@@ -11,7 +11,7 @@ ApplicationWindow {
visible: true
visibility: Qt.WindowFullScreen
title: "Image View - " + eventId
title: "Image View - " + filename
color: "#BB000000"
@@ -26,8 +26,8 @@ ApplicationWindow {
width: Math.min(sourceSize.width, root.width)
height: Math.min(sourceSize.height, root.height)
fillMode: Image.PreserveAspectFit
cache: false
fillMode: Image.PreserveAspectFit
source: localPath
}