┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphindetailsview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-09-04 16:59:47 +0000
committerPeter Penz <[email protected]>2010-09-04 16:59:47 +0000
commitf9554d6457b1439fb0a139a86aa91a94d525e653 (patch)
treeecc54693508871d9e5246308eefb7297af047263 /src/views/dolphindetailsview.h
parentbfdc7b4fa21a08a821cbd5d873798d16c6025809 (diff)
Use the size-hint provided by the item-delegate to calculate the required width of the columns. This assures that columns like "Path" are not clipped.
svn path=/trunk/KDE/kdebase/apps/; revision=1171601
Diffstat (limited to 'src/views/dolphindetailsview.h')
-rw-r--r--src/views/dolphindetailsview.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/views/dolphindetailsview.h b/src/views/dolphindetailsview.h
index 3ac08d337..8b76cbc36 100644
--- a/src/views/dolphindetailsview.h
+++ b/src/views/dolphindetailsview.h
@@ -88,6 +88,10 @@ protected:
virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command);
virtual void scrollTo(const QModelIndex& index, ScrollHint hint = EnsureVisible);
+
+protected slots:
+ virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
+
private slots:
/**
* Sets the sort indicator section of the header view
@@ -148,6 +152,11 @@ private slots:
void updateColumnVisibility();
/**
+ * Resizes all columns in a way to use the whole available width of the view.
+ */
+ void resizeColumns();
+
+ /**
* Saves order of the columns as global setting.
*/
void saveColumnPositions();
@@ -193,10 +202,6 @@ private slots:
void slotExpanded(const QModelIndex& index);
void slotCollapsed(const QModelIndex& index);
-protected slots:
-
- virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end);
-
private:
/**
* Removes the URLs corresponding to the children of \a index in the rows
@@ -215,11 +220,6 @@ private:
KFileItemDelegate::Information infoForColumn(int columnIndex) const;
/**
- * Resizes all columns in a way to use the whole available width of the view.
- */
- void resizeColumns();
-
- /**
* Returns true, if \a pos is within the expanding toggle of a tree.
*/
bool isAboveExpandingToggle(const QPoint& pos) const;