┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodel.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-01-27 15:19:39 +0100
committerFrank Reininghaus <[email protected]>2013-01-27 15:19:39 +0100
commitf76f3a165419b048f9f8bcdfcb40042397b9af9b (patch)
tree9bddd01912d2b954550b12923474d1ee7a4ba7ac /src/kitemviews/kfileitemmodel.h
parentd1b75d1d64d803d2b1099fb26f114342092249e3 (diff)
Move the consistency check for KFileItemModel from the test to the class
This makes it possible to check the model's consistency also in other places, e.g., in KFileItemModel's benchmark.
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
-rw-r--r--src/kitemviews/kfileitemmodel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h
index 14383d66e..903291a4c 100644
--- a/src/kitemviews/kfileitemmodel.h
+++ b/src/kitemviews/kfileitemmodel.h
@@ -434,6 +434,11 @@ private:
*/
static void determineMimeTypes(const KFileItemList& items, int timeout);
+ /**
+ * Checks if the model's internal data structures are consistent.
+ */
+ bool isConsistent() const;
+
private:
KFileItemModelDirLister* m_dirLister;