┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-02-28 06:00:58 +0000
committerPeter Penz <[email protected]>2007-02-28 06:00:58 +0000
commite1003784378ef388082f33faa1a647cd39c60f54 (patch)
tree74c7e38f9b8156c284df665a95555df5d519b728 /src/dolphindetailsview.cpp
parentf8dd060cadecd9f4c36b79d53dbae706dadf99f6 (diff)
Hide columns of the details view if this is indicated by the settings.
svn path=/trunk/KDE/kdebase/apps/; revision=637904
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index f0d93425b..d227e70c9 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -81,6 +81,25 @@ bool DolphinDetailsView::event(QEvent* event)
headerView->setStretchLastSection(false);
headerView->setResizeMode(QHeaderView::ResizeToContents);
headerView->setResizeMode(0, QHeaderView::Stretch);
+
+ // hide columns if this is indicated by the settings
+ const DetailsModeSettings* settings = DolphinSettings::instance().detailsModeSettings();
+ assert(settings != 0);
+ if (!settings->showDate()) {
+ hideColumn(KDirModel::ModifiedTime);
+ }
+
+ if (!settings->showPermissions()) {
+ hideColumn(KDirModel::Permissions);
+ }
+
+ if (!settings->showOwner()) {
+ hideColumn(KDirModel::Owner);
+ }
+
+ if (!settings->showGroup()) {
+ hideColumn(KDirModel::Group);
+ }
}
return QTreeView::event(event);