┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-09-21 18:52:46 +0000
committerPeter Penz <[email protected]>2007-09-21 18:52:46 +0000
commitd24597def8cee35fa230ebd9457e4bea89374d02 (patch)
tree862ca570680dbaf2b0b493c21048a453e7b4c797 /src/dolphincolumnview.h
parent18cc252f7cff0a96cbba8f97772dba9d8ddd0b77 (diff)
implemented reloading of all columns of the column view (just updating the directory lister is not enough in this case...)
svn path=/trunk/KDE/kdebase/apps/; revision=715294
Diffstat (limited to 'src/dolphincolumnview.h')
-rw-r--r--src/dolphincolumnview.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/dolphincolumnview.h b/src/dolphincolumnview.h
index ba5ed8101..37deffd2c 100644
--- a/src/dolphincolumnview.h
+++ b/src/dolphincolumnview.h
@@ -50,6 +50,13 @@ public:
virtual QRect visualRect(const QModelIndex& index) const;
virtual void setModel(QAbstractItemModel* model);
+ /**
+ * Reloads the content of all columns. In opposite to non-hierarchical views
+ * it is not enough to reload the KDirLister, instead this method must be explicitly
+ * invoked.
+ */
+ void reload();
+
protected:
virtual bool isIndexHidden(const QModelIndex& index) const;
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers);
@@ -86,6 +93,25 @@ private slots:
*/
void updateDecorationSize();
+ /**
+ * Expands the directory model the the currently active URL.
+ * Used by DolphinColumnView::reload() after the directory
+ * lister has been loaded.
+ */
+ void expandToActiveUrl();
+
+ /**
+ * Triggers the reloading of columns after the model index
+ * \a index has been expanded. Used by DolphinModel::expandToActiveUrl().
+ */
+ void triggerReloadColumns(const QModelIndex& index);
+
+ /**
+ * Adjusts the root index of all columns to represent the reloaded
+ * model. Used by DolphinModel::triggerReloadColumns().
+ */
+ void reloadColumns();
+
private:
bool isZoomInPossible() const;
bool isZoomOutPossible() const;