diff options
| author | Peter Penz <[email protected]> | 2009-08-01 16:07:42 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-08-01 16:07:42 +0000 |
| commit | 0706af30c0e08c105e86d49f310f9f0e0f13c3e6 (patch) | |
| tree | 4f474b732470cd6eb09c420b4ed2305ea9f634ee /src/revisioncontrolobserver.h | |
| parent | 34b6b300506d2e8e842dcdf7de0325d5156c0ba4 (diff) | |
Assure that the revision control observer receives the correct revision states of subtree-items.
svn path=/trunk/KDE/kdebase/apps/; revision=1005646
Diffstat (limited to 'src/revisioncontrolobserver.h')
| -rw-r--r-- | src/revisioncontrolobserver.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/revisioncontrolobserver.h b/src/revisioncontrolobserver.h index 51c003e43..2fbd20fb5 100644 --- a/src/revisioncontrolobserver.h +++ b/src/revisioncontrolobserver.h @@ -96,16 +96,22 @@ private slots: void applyUpdatedItemStates(); private: - void updateItemStates(); - -private: struct ItemState { QPersistentModelIndex index; KFileItem item; RevisionControlPlugin::RevisionState revision; }; - + + void updateItemStates(); + + /** + * Adds recursively all items from the directory \p parentIndex into + * the list \p itemStates. + */ + void addDirectory(const QModelIndex& parentIndex, QList<ItemState>& itemStates); + +private: bool m_pendingItemStatesUpdate; bool m_revisionedDirectory; bool m_silentUpdate; // if true, no messages will be send during the update |
