diff options
author | Felix Geyer <debfx@fobos.de> | 2010-09-18 19:15:22 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2010-09-18 19:15:22 +0400 |
commit | c93ac9f6fc860389c7e1dcfd3c0167e507d3bfd9 (patch) | |
tree | a7e6dbee6e3f8e8eb33d481de570293322ea1b4d /tests/TestGroupModel.cpp | |
parent | 36d974649e23ab6fe31c3046833410da291f5f5f (diff) |
Move qRegisterMetaType calls into initTestCase().
Diffstat (limited to 'tests/TestGroupModel.cpp')
-rw-r--r-- | tests/TestGroupModel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/TestGroupModel.cpp b/tests/TestGroupModel.cpp index 7ea324344..2d7a15d5f 100644 --- a/tests/TestGroupModel.cpp +++ b/tests/TestGroupModel.cpp @@ -28,9 +28,15 @@ class TestGroupModel : public QObject Q_OBJECT private Q_SLOTS: + void initTestCase(); void test(); }; +void TestGroupModel::initTestCase() +{ + qRegisterMetaType<QModelIndex>("QModelIndex"); +} + void TestGroupModel::test() { Database* db = new Database(); |