diff options
author | Felix Geyer <debfx@fobos.de> | 2012-04-23 18:57:08 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2012-04-23 18:57:08 +0400 |
commit | bddc29101cf46175ac198a08b14baf697fc0ba69 (patch) | |
tree | a467fc32259e3170187eeae154e68da33816d3e0 /tests/modeltest.h | |
parent | 6340ed89934ac8878e456c0b346d4c5c8c8fde83 (diff) |
Introduce Group::aboutToMove() and moved() signals.
Emit them instead of remove/add when groups are moved within
a database.
Diffstat (limited to 'tests/modeltest.h')
-rw-r--r-- | tests/modeltest.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modeltest.h b/tests/modeltest.h index e4ef478c5..46c3336e5 100644 --- a/tests/modeltest.h +++ b/tests/modeltest.h @@ -71,6 +71,9 @@ protected Q_SLOTS: 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 rowsAboutToBeMoved ( const QModelIndex &srcParent, int start, int end, const QModelIndex &destParent, int destinationRow ); + void rowsMoved ( const QModelIndex &srcParent, int start, int end, const QModelIndex &destParent, int destinationRow ); + private: void checkChildren( const QModelIndex &parent, int currentDepth = 0 ); |