diff options
Diffstat (limited to 'examples/touch')
-rw-r--r-- | examples/touch/fingerpaint/scribblearea.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/touch/fingerpaint/scribblearea.cpp b/examples/touch/fingerpaint/scribblearea.cpp index b0dd719ccd..7e0c8edab1 100644 --- a/examples/touch/fingerpaint/scribblearea.cpp +++ b/examples/touch/fingerpaint/scribblearea.cpp @@ -157,9 +157,9 @@ void ScribbleArea::print() #ifndef QT_NO_PRINTER QPrinter printer(QPrinter::HighResolution); - QPrintDialog *printDialog = new QPrintDialog(&printer, this); + QPrintDialog printDialog(&printer, this); //! [21] //! [22] - if (printDialog->exec() == QDialog::Accepted) { + if (printDialog.exec() == QDialog::Accepted) { QPainter painter(&printer); QRect rect = painter.viewport(); QSize size = image.size(); |