Fix incorrect us of QScopedPointer.

This commit is contained in:
Roman Telezhynskyi 2021-05-04 09:33:19 +03:00
parent c61087ed5d
commit 662ffd255b

View File

@ -765,7 +765,7 @@ void VPMainWindow::generateTiledPdf(QString fileName)
PageOrientation tilesOrientation = m_layout->GetTilesOrientation(); PageOrientation tilesOrientation = m_layout->GetTilesOrientation();
// ------------- Set up the printer // ------------- Set up the printer
auto printer = QScopedPointer<QPrinter>(new QPrinter()); QScopedPointer<QPrinter> printer(new QPrinter());
printer->setCreator(QGuiApplication::applicationDisplayName()+QChar(QChar::Space)+ printer->setCreator(QGuiApplication::applicationDisplayName()+QChar(QChar::Space)+
QCoreApplication::applicationVersion()); QCoreApplication::applicationVersion());