svn path=/trunk/KDE/kdebase/apps/; revision=838037
+int DolphinView::selectedItemsCount() const
+{
+ if (isColumnViewActive()) {
+ // TODO: get rid of this special case by adjusting the dir lister
+ // to the current column
+ return m_columnView->selectedItems().count();
+ }
+
+ return itemView()->selectionModel()->selection().count();
+}
+
void DolphinView::setContentsPosition(int x, int y)
{
QAbstractItemView* view = itemView();
void DolphinView::setContentsPosition(int x, int y)
{
QAbstractItemView* view = itemView();
*/
KUrl::List selectedUrls() const;
*/
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
/**
* Sets the upper left position of the view content
* to (x,y). The content of the view might be larger than the visible area