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/TestEntryModel.cpp
parent36d974649e23ab6fe31c3046833410da291f5f5f (diff)
Move qRegisterMetaType calls into initTestCase().
Diffstat (limited to 'tests/TestEntryModel.cpp')
-rw-r--r--tests/TestEntryModel.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/TestEntryModel.cpp b/tests/TestEntryModel.cpp
index 7e357c4b2..c8d7371e6 100644
--- a/tests/TestEntryModel.cpp
+++ b/tests/TestEntryModel.cpp
@@ -28,13 +28,17 @@ class TestEntryModel : public QObject
Q_OBJECT
private Q_SLOTS:
+ void initTestCase();
void test();
};
-void TestEntryModel::test()
+void TestEntryModel::initTestCase()
{
qRegisterMetaType<QModelIndex>("QModelIndex");
+}
+void TestEntryModel::test()
+{
Group* group1 = new Group();
Group* group2 = new Group();
@@ -94,6 +98,4 @@ void TestEntryModel::test()
QTEST_MAIN(TestEntryModel);
-Q_DECLARE_METATYPE(QModelIndex);
-
#include "TestEntryModel.moc"