From 7d8a959c563dd49583db1019e9655bbfa236e000 Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Fri, 18 Mar 2016 20:23:42 +0200 Subject: [PATCH] Fixed size of imageLabel --HG-- branch : feature --- .../dialogs/dialogpatternproperties.cpp | 1 + .../dialogs/dialogpatternproperties.ui | 45 +++++++++++++------ 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/src/app/valentina/dialogs/dialogpatternproperties.cpp b/src/app/valentina/dialogs/dialogpatternproperties.cpp index 7dbca591e..c05fac8b9 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.cpp +++ b/src/app/valentina/dialogs/dialogpatternproperties.cpp @@ -623,6 +623,7 @@ void DialogPatternProperties::InitImage() ui->imageLabel->setPixmap(QPixmap::fromImage(image)); ui->imageLabel->setContextMenuPolicy(Qt::CustomContextMenu); + ui->imageLabel->setScaledContents(true); connect(ui->changeImageButton, &QPushButton::clicked, this, &DialogPatternProperties::SetNewImage); connect(ui->deleteImageButton, &QPushButton::clicked, this, &DialogPatternProperties::DeleteImage); diff --git a/src/app/valentina/dialogs/dialogpatternproperties.ui b/src/app/valentina/dialogs/dialogpatternproperties.ui index e814be49a..5479e827b 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.ui +++ b/src/app/valentina/dialogs/dialogpatternproperties.ui @@ -85,20 +85,6 @@ 0 - - - - Image - - - - - - - No image - - - @@ -113,6 +99,37 @@ + + + + + 200 + 200 + + + + + 150 + 200 + + + + + 200 + 200 + + + + No image + + + Qt::AutoText + + + Qt::AlignCenter + + +