┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/viewproperties.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2006-12-13 07:41:11 +0000
committerPeter Penz <[email protected]>2006-12-13 07:41:11 +0000
commit163fa7ce30c0bd1b18d0c750bf9358560c2db7af (patch)
treecf99237a8dd236324fa1fd7967712f861be0477b /src/viewproperties.cpp
parentcb2b58535bedacbec50b3dad9680b1fa4fe30a9e (diff)
Instead of having a the 3 view modes "icons", "details" and "previews" only 2 view modes are used now: "icons" and "details". Whether a preview is shown or not is part of the directory view properties. This also means that it will be possible to show previews in the "details" view in future releases.
svn path=/trunk/playground/utils/dolphin/; revision=613029
Diffstat (limited to 'src/viewproperties.cpp')
-rw-r--r--src/viewproperties.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp
index e3e219b24..60e91cabf 100644
--- a/src/viewproperties.cpp
+++ b/src/viewproperties.cpp
@@ -97,7 +97,21 @@ DolphinView::Mode ViewProperties::viewMode() const
return static_cast<DolphinView::Mode>(m_node->viewMode());
}
-void ViewProperties::setShowHiddenFilesEnabled(bool show)
+void ViewProperties::setShowPreview(bool show)
+{
+ if (m_node->showPreview() != show) {
+ m_node->setShowPreview(show);
+ updateTimeStamp();
+ }
+}
+
+bool ViewProperties::showPreview() const
+{
+ return m_node->showPreview();
+}
+
+
+void ViewProperties::setShowHiddenFiles(bool show)
{
if (m_node->showHiddenFiles() != show) {
m_node->setShowHiddenFiles(show);
@@ -105,7 +119,7 @@ void ViewProperties::setShowHiddenFilesEnabled(bool show)
}
}
-bool ViewProperties::isShowHiddenFilesEnabled() const
+bool ViewProperties::showHiddenFiles() const
{
return m_node->showHiddenFiles();
}