diff options
| author | Peter Penz <[email protected]> | 2011-04-15 20:35:25 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-04-15 20:38:24 +0200 |
| commit | 14bae32f371663d172e1dd39d98080fd8695d991 (patch) | |
| tree | 1882644ddf47625ba2ad8c536d4f1eb75e27b735 /src/views/dolphindetailsview.h | |
| parent | c7ef72de5563ae33e9342526cb33d67498de0759 (diff) | |
Details view: Fix jumping column-widths
If the view has a width where a horizontal scrollbar is required to
show all columns, an endless loop might get triggered that results in a
periodic jumping of the column-widths.
BUG: 270954
FIXED-IN: 4.7.0
Diffstat (limited to 'src/views/dolphindetailsview.h')
| -rw-r--r-- | src/views/dolphindetailsview.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/views/dolphindetailsview.h b/src/views/dolphindetailsview.h index 640181274..305035dd5 100644 --- a/src/views/dolphindetailsview.h +++ b/src/views/dolphindetailsview.h @@ -195,6 +195,12 @@ private: */ void adjustMaximumSizeForEditing(const QModelIndex& index); + /** + * Helper method for DolphinDetailsView::resizeColumns(): Returns the + * string representation of the size-value for the given index. + */ + QString itemSizeString(const QModelIndex& index, const KFileItem& item) const; + private: bool m_autoResize; // if true, the columns are resized automatically to the available width |
