From 0706af30c0e08c105e86d49f310f9f0e0f13c3e6 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 1 Aug 2009 16:07:42 +0000 Subject: Assure that the revision control observer receives the correct revision states of subtree-items. svn path=/trunk/KDE/kdebase/apps/; revision=1005646 --- src/revisioncontrolobserver.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/revisioncontrolobserver.h') diff --git a/src/revisioncontrolobserver.h b/src/revisioncontrolobserver.h index 51c003e43..2fbd20fb5 100644 --- a/src/revisioncontrolobserver.h +++ b/src/revisioncontrolobserver.h @@ -95,9 +95,6 @@ private slots: void verifyDirectory(); void applyUpdatedItemStates(); -private: - void updateItemStates(); - private: struct ItemState { @@ -105,7 +102,16 @@ private: 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& itemStates); + +private: bool m_pendingItemStatesUpdate; bool m_revisionedDirectory; bool m_silentUpdate; // if true, no messages will be send during the update -- cgit v1.3