From 5d38b188c4a020c541236f88a67cba70b0d9b33b Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Thu, 7 Apr 2016 02:51:11 +0300 Subject: [PATCH] Better looks if we have just one button "change image" --HG-- branch : feature --- src/app/valentina/dialogs/dialogpatternproperties.cpp | 1 - src/app/valentina/dialogs/dialogpatternproperties.ui | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/app/valentina/dialogs/dialogpatternproperties.cpp b/src/app/valentina/dialogs/dialogpatternproperties.cpp index 2da40283c..65ef62770 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.cpp +++ b/src/app/valentina/dialogs/dialogpatternproperties.cpp @@ -632,7 +632,6 @@ void DialogPatternProperties::InitImage() ui->imageLabel->setScaledContents(true); connect(ui->changeImageButton, &QPushButton::clicked, this, &DialogPatternProperties::ChangeImage); - connect(ui->deleteImageButton, &QPushButton::clicked, this, &DialogPatternProperties::DeleteImage); connect(ui->imageLabel, &QWidget::customContextMenuRequested, this, &DialogPatternProperties::ShowContextMenu); deleteAction = new QAction(tr("Delete image"), this); diff --git a/src/app/valentina/dialogs/dialogpatternproperties.ui b/src/app/valentina/dialogs/dialogpatternproperties.ui index 5479e827b..9c82ef7d5 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.ui +++ b/src/app/valentina/dialogs/dialogpatternproperties.ui @@ -92,13 +92,6 @@ - - - - delete image - - -