Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2010-09-18 19:15:22 +0400
committerFelix Geyer <debfx@fobos.de>2010-09-18 19:15:22 +0400
commitc93ac9f6fc860389c7e1dcfd3c0167e507d3bfd9 (patch)
treea7e6dbee6e3f8e8eb33d481de570293322ea1b4d /tests/TestGroupModel.cpp
parent36d974649e23ab6fe31c3046833410da291f5f5f (diff)
Move qRegisterMetaType calls into initTestCase().
Diffstat (limited to 'tests/TestGroupModel.cpp')
-rw-r--r--tests/TestGroupModel.cpp6
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();