aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutil.h')
-rw-r--r--tests/testutil.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testutil.h b/tests/testutil.h
index 1aed98349..7639a2535 100644
--- a/tests/testutil.h
+++ b/tests/testutil.h
@@ -31,10 +31,11 @@
class TestUtil
{
public:
- TestUtil(const char* cppCode, const char* xmlCode, bool silent = true) : m_builder(0)
+ TestUtil(const char* cppCode, const char* xmlCode, bool silent = true, double apiVersion = 0) : m_builder(0)
{
ReportHandler::setSilent(silent);
m_builder = new AbstractMetaBuilder;
+ TypeDatabase::instance()->setApiVersion(apiVersion);
QBuffer buffer;
// parse typesystem
buffer.setData(xmlCode);