From e838ae811ec87d48f2c310e059ae6c5edeacb403 Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Sun, 27 Mar 2016 14:39:52 +0300 Subject: [PATCH] Little fixes --HG-- branch : feature --- src/app/valentina/dialogs/dialogpatternproperties.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/valentina/dialogs/dialogpatternproperties.cpp b/src/app/valentina/dialogs/dialogpatternproperties.cpp index b9b9bcf55..43d40b67e 100644 --- a/src/app/valentina/dialogs/dialogpatternproperties.cpp +++ b/src/app/valentina/dialogs/dialogpatternproperties.cpp @@ -700,9 +700,9 @@ void DialogPatternProperties::SaveImage() QByteArray byteArray; byteArray.append(doc->GetImage().toUtf8()); QByteArray ba = QByteArray::fromBase64(byteArray); - QString extension = "." + doc->GetImageExtension(); + const QString extension = "." + doc->GetImageExtension(); QString filter = tr("Images (*") + extension + ")"; - QString filename = QFileDialog::getSaveFileName(this, tr("Save File"), "untitled", filter, &filter); + QString filename = QFileDialog::getSaveFileName(this, tr("Save File"), tr("untitled"), filter, &filter); if (not filename.endsWith(extension.toUpper())) { filename.append(extension); @@ -719,7 +719,7 @@ void DialogPatternProperties::SaveImage() void DialogPatternProperties::ShowImage() { QLabel *label = new QLabel(this, Qt::Window); - QImage image = GetImage(); + const QImage image = GetImage(); label->setPixmap(QPixmap::fromImage(image)); label->setGeometry(QRect(QCursor::pos(), image.size())); label->show();