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 <allan.jensen@qt.io>
This commit is contained in:
Eirik Aavitsland 2017-08-04 11:02:15 +02:00 committed by Jędrzej Nowacki
parent 37af667771
commit 51edf8a2b2
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);