diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
| commit | ea6292168a6acd4c263913f0ccd7dd64daf4f5cf (patch) | |
| tree | 312024abbd7c3c100274f3a8031d49096480b654 /src/modeltest.h | |
| parent | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff) | |
Revert "Applied clang-format on source"
This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e.
Diffstat (limited to 'src/modeltest.h')
| -rw-r--r-- | src/modeltest.h | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/src/modeltest.h b/src/modeltest.h index b0197a1a..68090f3f 100644 --- a/src/modeltest.h +++ b/src/modeltest.h @@ -39,54 +39,56 @@ **
****************************************************************************/
+
#ifndef MODELTEST_H
#define MODELTEST_H
-#include <QtCore/QAbstractItemModel>
#include <QtCore/QObject>
+#include <QtCore/QAbstractItemModel>
#include <QtCore/QStack>
-class ModelTest : public QObject {
- Q_OBJECT
+class ModelTest : public QObject
+{
+ Q_OBJECT
public:
- ModelTest(QAbstractItemModel* model, QObject* parent = 0);
+ ModelTest( QAbstractItemModel *model, QObject *parent = 0 );
private Q_SLOTS:
- void nonDestructiveBasicTest();
- void rowCount();
- void columnCount();
- void hasIndex();
- void index();
- void parent();
- void data();
+ void nonDestructiveBasicTest();
+ void rowCount();
+ void columnCount();
+ void hasIndex();
+ void index();
+ void parent();
+ void data();
protected Q_SLOTS:
- void runAllTests();
- void layoutAboutToBeChanged();
- void layoutChanged();
- void rowsAboutToBeInserted(const QModelIndex& parent, int start, int end);
- void rowsInserted(const QModelIndex& parent, int start, int end);
- void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end);
- void rowsRemoved(const QModelIndex& parent, int start, int end);
+ void runAllTests();
+ void layoutAboutToBeChanged();
+ void layoutChanged();
+ void rowsAboutToBeInserted( const QModelIndex &parent, int start, int end );
+ void rowsInserted( const QModelIndex & parent, int start, int end );
+ void rowsAboutToBeRemoved( const QModelIndex &parent, int start, int end );
+ void rowsRemoved( const QModelIndex & parent, int start, int end );
private:
- void checkChildren(const QModelIndex& parent, int currentDepth = 0);
+ void checkChildren( const QModelIndex &parent, int currentDepth = 0 );
- QAbstractItemModel* model;
+ QAbstractItemModel *model;
- struct Changing {
- QModelIndex parent;
- int oldSize;
- QVariant last;
- QVariant next;
- };
- QStack<Changing> insert;
- QStack<Changing> remove;
+ struct Changing {
+ QModelIndex parent;
+ int oldSize;
+ QVariant last;
+ QVariant next;
+ };
+ QStack<Changing> insert;
+ QStack<Changing> remove;
- bool fetchingMore;
+ bool fetchingMore;
- QList<QPersistentModelIndex> changing;
+ QList<QPersistentModelIndex> changing;
};
#endif
|
