summaryrefslogtreecommitdiffstats
path: root/tests/arthur/lance
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arthur/lance')
-rw-r--r--tests/arthur/lance/lance.pro8
-rw-r--r--tests/arthur/lance/main.cpp7
2 files changed, 11 insertions, 4 deletions
diff --git a/tests/arthur/lance/lance.pro b/tests/arthur/lance/lance.pro
index ee9e08b..3692f21 100644
--- a/tests/arthur/lance/lance.pro
+++ b/tests/arthur/lance/lance.pro
@@ -12,6 +12,12 @@ RESOURCES += icons.qrc
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2):QT += opengl
contains(QT_CONFIG, qt3support):QT += qt3support
-QT += xml svg
+symbian*: {
+ testData.sources = $$QT_BUILD_TREE/tests/arthur/data/qps
+ testData.path = .
+ DEPLOYMENT += testData
+}
+
+QT += xml svg
diff --git a/tests/arthur/lance/main.cpp b/tests/arthur/lance/main.cpp
index 7b9b1d2..8bf10eb 100644
--- a/tests/arthur/lance/main.cpp
+++ b/tests/arthur/lance/main.cpp
@@ -199,7 +199,6 @@ static void displayCommands()
" pixmap_load filename name_in_script\n"
" image_load filename name_in_script\n");
}
-
static InteractiveWidget *interactive_widget = 0;
static void runInteractive()
@@ -581,6 +580,7 @@ int main(int argc, char **argv)
case PrinterType:
{
+#ifndef QT_NO_PRINTER
PaintCommands pcmd(QStringList(), 800, 800);
pcmd.setVerboseMode(verboseMode);
pcmd.setType(type);
@@ -608,11 +608,13 @@ int main(int argc, char **argv)
}
Q_ASSERT(!p.paintingActive());
+#endif
break;
}
case PsType:
case PdfType:
{
+#ifndef QT_NO_PRINTER
PaintCommands pcmd(QStringList(), 800, 800);
pcmd.setVerboseMode(verboseMode);
pcmd.setType(type);
@@ -635,6 +637,7 @@ int main(int argc, char **argv)
pt.end();
printf("write file: %s\n", qPrintable(file));
+#endif
break;
}
case GrabType:
@@ -657,7 +660,6 @@ int main(int argc, char **argv)
printf("%s grabbed to %s\n", qPrintable(files.at(j)), qPrintable(filename));
break;
}
-
default:
break;
}
@@ -668,7 +670,6 @@ int main(int argc, char **argv)
QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
app.exec();
}
-
delete activeWidget;
#endif
return 0;