┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-09-26 07:23:09 +0000
committerPeter Penz <[email protected]>2007-09-26 07:23:09 +0000
commitf15e4914a0c4dced3432e42c10ef15aa5fd3cb6e (patch)
tree45ebc97072d18cf9a3ed3078e068408a3dc0a65e /src/dolphincolumnview.h
parent96d892bc47c652676f380193a3bc298c3a62c2ea (diff)
prevent crash in model when invoking KDirModel::expandToUrl() before the directory lister has been initialized
svn path=/trunk/KDE/kdebase/apps/; revision=717158
Diffstat (limited to 'src/dolphincolumnview.h')
-rw-r--r--src/dolphincolumnview.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/dolphincolumnview.h b/src/dolphincolumnview.h
index 639ccec32..5a20b1f9f 100644
--- a/src/dolphincolumnview.h
+++ b/src/dolphincolumnview.h
@@ -50,6 +50,10 @@ public:
virtual QRect visualRect(const QModelIndex& index) const;
virtual void setModel(QAbstractItemModel* model);
+ /** Inverts the selection of the currently active column. */
+ void invertSelection();
+
+public slots:
/**
* 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
@@ -57,10 +61,6 @@ public:
*/
void reload();
- /** Inverts the selection of the currently active column. */
- void invertSelection();
-
-public slots:
/**
* Shows the column which represents the URL \a url. If the column
* is already shown, it gets activated, otherwise it will be created.
@@ -118,6 +118,8 @@ private slots:
*/
void reloadColumns();
+ void triggerItem(const QModelIndex& index);
+
private:
bool isZoomInPossible() const;
bool isZoomOutPossible() const;
@@ -151,6 +153,7 @@ private:
private:
DolphinController* m_controller;
bool m_restoreActiveColumnFocus;
+ bool m_initializedDirLister;
int m_index;
int m_contentX;
QList<ColumnWidget*> m_columns;