┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-11-07 22:55:15 +0000
committerPeter Penz <[email protected]>2007-11-07 22:55:15 +0000
commit18755c672028e918d6ef54e35e88946fefa8d603 (patch)
treee3f6eb179a677d5e3b3d05096442ced4263cc989 /src/dolphindetailsview.h
parent2a6dbbd17547c63d869727d0c680744966ae742f (diff)
Fixed performance issue in the details-view when showing > 10000 items:
* Resizing the columns takes around 250 ms instead of 2 seconds. * Opening 10000 items from the disk cache takes 3 seconds instead of 20 seconds. svn path=/trunk/KDE/kdebase/apps/; revision=734052
Diffstat (limited to 'src/dolphindetailsview.h')
-rw-r--r--src/dolphindetailsview.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h
index ec98b0faf..f00b263d1 100644
--- a/src/dolphindetailsview.h
+++ b/src/dolphindetailsview.h
@@ -138,6 +138,11 @@ private:
KFileItemDelegate::Information infoForColumn(int columnIndex) const;
+ /**
+ * Resizes all columns in a way to use the whole available width of the view.
+ */
+ void resizeColumns();
+
private:
DolphinController* m_controller;
QStyleOptionViewItem m_viewOptions;