diff options
author | Paul Wicking <[email protected]> | 2020-08-31 14:58:16 +0200 |
---|---|---|
committer | Paul Wicking <[email protected]> | 2020-09-01 06:13:20 +0200 |
commit | 614ca8ec4a0ea5e2a67be8c115fddaf3972c2a0b (patch) | |
tree | f39ed5ce5de613298c8717dfc666ccc24b1d5045 /src/gui/doc/snippets/separations/viewer.cpp | |
parent | 7e571c3927c952bebed602ce61eb9c9bf4467d50 (diff) |
Doc: compile separations snippets
Done-with: Nico Vertriest <[email protected]>
Task-number: QTBUG-81486
Change-Id: I62294cedd4a0f96ebc2513b5b4179d451bb4b375
Reviewed-by: Topi Reiniƶ <[email protected]>
Diffstat (limited to 'src/gui/doc/snippets/separations/viewer.cpp')
-rw-r--r-- | src/gui/doc/snippets/separations/viewer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/doc/snippets/separations/viewer.cpp b/src/gui/doc/snippets/separations/viewer.cpp index 018b397f1a6..c1aca075244 100644 --- a/src/gui/doc/snippets/separations/viewer.cpp +++ b/src/gui/doc/snippets/separations/viewer.cpp @@ -145,7 +145,6 @@ QFrame* Viewer::createCentralWidget() QFrame* frame = new QFrame(this); grid = new QGridLayout(frame); grid->setSpacing(8); - grid->setMargin(4); layout()->setSizeConstraint(QLayout::SetFixedSize); @@ -324,7 +323,7 @@ void Viewer::saveImage() QString newImageFile = QFileInfo(info.absoluteDir(), info.baseName() + ".png").absoluteFilePath(); - if (!finalWidget->pixmap()->save(newImageFile, "PNG")) + if (!finalWidget->pixmap().save(newImageFile, "PNG")) (void) QMessageBox::warning(this, tr("Cannot save file"), tr("The file could not be saved."), QMessageBox::Cancel, QMessageBox::NoButton, |