From ea6292168a6acd4c263913f0ccd7dd64daf4f5cf Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Fri, 23 Feb 2018 01:45:58 +0100 Subject: Revert "Applied clang-format on source" This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e. --- src/modeltest.h | 62 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 30 deletions(-) (limited to 'src/modeltest.h') 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 #include +#include #include -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 insert; - QStack remove; + struct Changing { + QModelIndex parent; + int oldSize; + QVariant last; + QVariant next; + }; + QStack insert; + QStack remove; - bool fetchingMore; + bool fetchingMore; - QList changing; + QList changing; }; #endif -- cgit v1.3.1