diff options
author | Louis-Bertrand Varin <louisbvarin@gmail.com> | 2018-03-31 23:01:30 +0300 |
---|---|---|
committer | Louis-Bertrand Varin <louisbvarin@gmail.com> | 2018-03-31 23:01:30 +0300 |
commit | 8324d03f0a015e62b6182843b4478226a5197090 (patch) | |
tree | faf34febaec7c7e764d357dc5e439f6f2b1fcaf3 /tests/TestGroupModel.cpp | |
parent | 74efc57369b068a0f93cb84ac68b6c17f64c8abe (diff) |
Formatting the code.
Diffstat (limited to 'tests/TestGroupModel.cpp')
-rw-r--r-- | tests/TestGroupModel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/TestGroupModel.cpp b/tests/TestGroupModel.cpp index f9f55e247..ecdc24052 100644 --- a/tests/TestGroupModel.cpp +++ b/tests/TestGroupModel.cpp @@ -20,9 +20,9 @@ #include <QSignalSpy> -#include "modeltest.h" #include "crypto/Crypto.h" #include "gui/group/GroupModel.h" +#include "modeltest.h" QTEST_GUILESS_MAIN(TestGroupModel) @@ -76,18 +76,18 @@ void TestGroupModel::test() QCOMPARE(model->data(index12).toString(), QString("group12")); QCOMPARE(model->data(index121).toString(), QString("group121")); - QSignalSpy spy1(model, SIGNAL(dataChanged(QModelIndex,QModelIndex))); + QSignalSpy spy1(model, SIGNAL(dataChanged(QModelIndex, QModelIndex))); group11->setName("test"); group121->setIcon(4); QCOMPARE(spy1.count(), 2); QCOMPARE(model->data(index11).toString(), QString("test")); - QSignalSpy spyAboutToAdd(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int))); - QSignalSpy spyAdded(model, SIGNAL(rowsInserted(QModelIndex,int,int))); - QSignalSpy spyAboutToRemove(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int))); - QSignalSpy spyRemoved(model, SIGNAL(rowsRemoved(QModelIndex,int,int))); - QSignalSpy spyAboutToMove(model, SIGNAL(rowsAboutToBeMoved(QModelIndex,int,int,QModelIndex,int))); - QSignalSpy spyMoved(model, SIGNAL(rowsMoved(QModelIndex,int,int,QModelIndex,int))); + QSignalSpy spyAboutToAdd(model, SIGNAL(rowsAboutToBeInserted(QModelIndex, int, int))); + QSignalSpy spyAdded(model, SIGNAL(rowsInserted(QModelIndex, int, int))); + QSignalSpy spyAboutToRemove(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex, int, int))); + QSignalSpy spyRemoved(model, SIGNAL(rowsRemoved(QModelIndex, int, int))); + QSignalSpy spyAboutToMove(model, SIGNAL(rowsAboutToBeMoved(QModelIndex, int, int, QModelIndex, int))); + QSignalSpy spyMoved(model, SIGNAL(rowsMoved(QModelIndex, int, int, QModelIndex, int))); Group* group2 = new Group(); group2->setObjectName("group2"); |