summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2017-08-04 11:02:15 +0200
committerJędrzej Nowacki <jedrzej.nowacki@qt.io>2017-08-04 18:48:29 +0000
commit51edf8a2b22c690c0ee230a54f7f1f66d34ce09e (patch)
tree791800f97eb0dbee225a33ed0266cfdc26bc72b4 /tests/manual
parent37af6677719dd13642ad4e61d2758dacfe7efe4c (diff)
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>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/lance/main.cpp6
-rw-r--r--tests/manual/lance/widgets.h2
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);