diff options
Diffstat (limited to 'tests/auto/integrationtests/modeltest/dynamictreemodel.h')
-rw-r--r-- | tests/auto/integrationtests/modeltest/dynamictreemodel.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/integrationtests/modeltest/dynamictreemodel.h b/tests/auto/integrationtests/modeltest/dynamictreemodel.h index 81ef80cc40..6f52d78588 100644 --- a/tests/auto/integrationtests/modeltest/dynamictreemodel.h +++ b/tests/auto/integrationtests/modeltest/dynamictreemodel.h @@ -89,6 +89,7 @@ private: friend class ModelMoveCommand; friend class ModelResetCommand; friend class ModelResetCommandFixed; + friend class ModelChangeChildrenLayoutsCommand; }; @@ -193,5 +194,21 @@ public: }; +class ModelChangeChildrenLayoutsCommand : public ModelChangeCommand +{ + Q_OBJECT +public: + ModelChangeChildrenLayoutsCommand(DynamicTreeModel *model, QObject *parent); + + virtual ~ModelChangeChildrenLayoutsCommand() {} + + virtual void doCommand(); + + void setSecondAncestorRowNumbers( QList<int> rows ) { m_secondRowNumbers = rows; } + +protected: + QList<int> m_secondRowNumbers; + int m_destRow; +}; #endif |