From f1d1a18a7169e9ad7ad4fd9cd21261d76e1c2bf0 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 6 Nov 2007 07:16:23 +0000 Subject: When switching from e. g. the icons view to the details view, additional information properties like 'Size' and 'Date' are added as default (showing a details-view without details does not make sense as default setting...). This fix assures that the additional information properties are removed again when switching back to the icons view. Only if the user modified the additional information properties by a GUI-interaction (e. g. by adding a 'Type'), this information is persistet also when switching back to the icon-view. BUG: 151891 svn path=/trunk/KDE/kdebase/apps/; revision=733313 --- src/dolphindetailsview.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dolphindetailsview.h') diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index 57fb98f22..ec98b0faf 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -58,6 +58,7 @@ protected: virtual void paintEvent(QPaintEvent* event); virtual void keyPressEvent(QKeyEvent* event); virtual void resizeEvent(QResizeEvent* event); + virtual void closeEvent(QCloseEvent* event); private slots: /** @@ -135,10 +136,14 @@ private: KFileItem itemForIndex(const QModelIndex& index) const; + KFileItemDelegate::Information infoForColumn(int columnIndex) const; + private: DolphinController* m_controller; QStyleOptionViewItem m_viewOptions; + bool m_clearAdditionalInfo; + bool m_dragging; // TODO: remove this property when the issue #160611 is solved in Qt 4.4 QRect m_dropRect; // TODO: remove this property when the issue #160611 is solved in Qt 4.4 -- cgit v1.3