diff --git a/src/app/valentina/dialogs/dialogpatternproperties.cpp b/src/app/valentina/dialogs/dialogpatternproperties.cpp index 710ddc0f7..569b6837f 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.cpp +++ b/src/app/valentina/dialogs/dialogpatternproperties.cpp @@ -635,7 +635,7 @@ void DialogPatternProperties::InitImage() ui->imageLabel->setContextMenuPolicy(Qt::CustomContextMenu); ui->imageLabel->setScaledContents(true); - connect(ui->changeImageButton, &QPushButton::clicked, this, &DialogPatternProperties::SetNewImage); + connect(ui->changeImageButton, &QPushButton::clicked, this, &DialogPatternProperties::ChangeImage); connect(ui->deleteImageButton, &QPushButton::clicked, this, &DialogPatternProperties::DeleteImage); connect(ui->imageLabel, &QWidget::customContextMenuRequested, this, &DialogPatternProperties::ShowContextMenu); @@ -644,13 +644,13 @@ void DialogPatternProperties::InitImage() saveImageAction = new QAction(tr("Save image to file"), this); showImageAction = new QAction(tr("Show image"), this); connect(deleteAction, &QAction::triggered, this, &DialogPatternProperties::DeleteImage); - connect(changeImageAction, &QAction::triggered, this, &DialogPatternProperties::SetNewImage); + connect(changeImageAction, &QAction::triggered, this, &DialogPatternProperties::ChangeImage); connect(saveImageAction, &QAction::triggered, this, &DialogPatternProperties::SaveImage); connect(showImageAction, &QAction::triggered, this, &DialogPatternProperties::ShowImage); } //--------------------------------------------------------------------------------------------------------------------- -void DialogPatternProperties::SetNewImage() +void DialogPatternProperties::ChangeImage() { const QString fileName = QFileDialog::getOpenFileName(this, tr("Image for pattern"), QString(), tr("Images (*.png *.jpg *.jpeg *.bmp)")); @@ -701,7 +701,7 @@ void DialogPatternProperties::SaveImage() byteArray.append(doc->GetImage().toUtf8()); QByteArray ba = QByteArray::fromBase64(byteArray); const QString extension = "." + doc->GetImageExtension(); - QString filter = tr("Images (*") + extension + ")"; + QString filter = tr("Images") + " (*" + extension + ")"; QString filename = QFileDialog::getSaveFileName(this, tr("Save File"), tr("untitled"), filter, &filter); if (not filename.isEmpty()) { diff --git a/src/app/valentina/dialogs/dialogpatternproperties.h b/src/app/valentina/dialogs/dialogpatternproperties.h index 14d737ba6..ce8f07291 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.h +++ b/src/app/valentina/dialogs/dialogpatternproperties.h @@ -57,7 +57,7 @@ public slots: void CheckStateHeight(int state); void CheckStateSize(int state); void DescEdited(); - void SetNewImage(); + void ChangeImage(); void ShowContextMenu(); protected: virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;