┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-07-26 13:46:58 +0000
committerPeter Penz <[email protected]>2008-07-26 13:46:58 +0000
commitd337ece6df43337eff338758ace5204937a000b7 (patch)
tree4f998b92cef3d8cdc9b20a16117e04dd59c6b278 /src/dolphinview.h
parent8a51f70377a5133984426b3fa999aee3859cfa5e (diff)
Provide a 'int selectedItemsCount() const' interface for performance reasons, so that code which just needs to know whether items have been selected does not need to invoke selectedItems().count(), which is quite expensive.
svn path=/trunk/KDE/kdebase/apps/; revision=838037
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index 6f4327c52..e74975f67 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -219,6 +219,12 @@ public:
KUrl::List selectedUrls() const;
/**
+ * Returns the number of selected items (this is faster than
+ * invoking selectedItems().count()).
+ */
+ int selectedItemsCount() const;
+
+ /**
* Sets the upper left position of the view content
* to (x,y). The content of the view might be larger than the visible area
* and hence a scrolling must be done.