From 51edf8a2b22c690c0ee230a54f7f1f66d34ce09e Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Fri, 4 Aug 2017 11:02:15 +0200 Subject: [PATCH] Fix compilation of manual lance test Commit 32a94e54 changed the API of the QPS engine (PaintCommands class). Update the usage accordingly. Change-Id: Ide57609e636dad0aa434d1049b600b72f731bc30 Reviewed-by: Allan Sandfeld Jensen --- tests/manual/lance/main.cpp | 6 +++--- tests/manual/lance/widgets.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/manual/lance/main.cpp b/tests/manual/lance/main.cpp index a8fa6bd402..749a4b1943 100644 --- a/tests/manual/lance/main.cpp +++ b/tests/manual/lance/main.cpp @@ -353,7 +353,7 @@ int main(int argc, char **argv) scaledWidth = width * scalefactor; scaledHeight = height * scalefactor; - PaintCommands pcmd(QStringList(), 800, 800); + PaintCommands pcmd(QStringList(), 800, 800, imageFormat); pcmd.setVerboseMode(verboseMode); pcmd.setType(type); pcmd.setCheckersBackground(checkers_background); @@ -601,7 +601,7 @@ int main(int argc, char **argv) case PrinterType: { #ifndef QT_NO_PRINTER - PaintCommands pcmd(QStringList(), 800, 800); + PaintCommands pcmd(QStringList(), 800, 800, imageFormat); pcmd.setVerboseMode(verboseMode); pcmd.setType(type); pcmd.setCheckersBackground(checkers_background); @@ -635,7 +635,7 @@ int main(int argc, char **argv) case PdfType: { #ifndef QT_NO_PRINTER - PaintCommands pcmd(QStringList(), 800, 800); + PaintCommands pcmd(QStringList(), 800, 800, QImage::Format_ARGB32_Premultiplied); pcmd.setVerboseMode(verboseMode); pcmd.setType(type); pcmd.setCheckersBackground(checkers_background); diff --git a/tests/manual/lance/widgets.h b/tests/manual/lance/widgets.h index 106842d118..583d9e2455 100644 --- a/tests/manual/lance/widgets.h +++ b/tests/manual/lance/widgets.h @@ -178,7 +178,7 @@ public: pt.begin(dev); - PaintCommands paintCommands(m_commands, 800, 800); + PaintCommands paintCommands(m_commands, 800, 800, QImage::Format_ARGB32_Premultiplied); paintCommands.setVerboseMode(m_verboseMode); paintCommands.setCheckersBackground(m_checkersBackground); paintCommands.setType(m_deviceType);