summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/installer.pro
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-09-10 17:20:21 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-09-16 09:45:13 +0300
commit913c7ea16f961a8f5688734cd12d00fbeaa5d48c (patch)
tree8cd9c58233ea51ffddbcfc2f879f78a6da17cb15 /src/libs/installer/installer.pro
parent244b3c4e92f0909085d5068d5a8c04137068c06b (diff)
Fix image aspect ratio not preserved when resizing window
As this is not currently possible using only QLabel, subclass it with a new AspectRatioLabel class to provide the functionality. This should be usable also on other places where we need scaling with aspect ratio maintaining. Task-number: QTIFW-1944 Change-Id: I32147b2b487573bb054fcf66b09eb3f8a0350ccd Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/installer.pro')
-rw-r--r--src/libs/installer/installer.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/installer.pro b/src/libs/installer/installer.pro
index 2cfb079f5..225b1c8d1 100644
--- a/src/libs/installer/installer.pro
+++ b/src/libs/installer/installer.pro
@@ -42,6 +42,7 @@ QT += \
win32:QT += winextras
HEADERS += packagemanagercore.h \
+ aspectratiolabel.h \
packagemanagercore_p.h \
packagemanagergui.h \
binaryformat.h \
@@ -139,6 +140,7 @@ HEADERS += packagemanagercore.h \
commandlineparser_p.h
SOURCES += packagemanagercore.cpp \
+ aspectratiolabel.cpp \
packagemanagercore_p.cpp \
packagemanagergui.cpp \
binaryformat.cpp \