From 3e132ea672ec5e54fbb79438813a9d579a7daef9 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 16 Jan 2008 22:14:34 +0000 Subject: don't resize the columns automatically, as soon as the user has modified the column widths himself (e. g. by a double-click on the header or by moving the header handle) BUG: 155760 svn path=/trunk/KDE/kdebase/apps/; revision=762385 --- src/dolphindetailsview.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphindetailsview.h') diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index 086121f7a..a9201d8b3 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -118,6 +118,18 @@ private slots: void updateColumnVisibility(); + /** + * Disables the automatical resizing of columns, if the user has resized the columns + * with the mouse. + */ + void slotHeaderSectionResized(int logicalIndex, int oldSize, int newSize); + + /** + * Disables the automatical resizing of the columns. Per default all columns + * are resized to use the maximum available width of the view as good as possible. + */ + void disableAutoResizing(); + private: bool isZoomInPossible() const; bool isZoomOutPossible() const; @@ -143,6 +155,8 @@ private: void resizeColumns(); private: + bool m_autoResize; // if true, the columns are resized automatically to the available width + DolphinController* m_controller; QFont m_font; -- cgit v1.3