┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-10-15 22:55:01 +0200
committerPeter Penz <[email protected]>2011-10-15 22:55:01 +0200
commit283f97ac27c3cfe5c72682b0843503e31643a612 (patch)
tree35325115a5e5c001e1e307acc580af572bad0ac1 /src/settings
parenta49109b09a191b73f3fda8b65c29e9c6c9bd33d8 (diff)
Interface cleanups to prepare the return of "grouped sorting"
- Rename setCategorizedSorting() to setGroupedSorting() - Change the model interface to allow enabling/disabling grouping without the need to declare a role (the sort role will be taken). - Add dummy group role implementation in KFileItemModel The grouping code itself requires some cleanups and might crash at the moment or lead to weird layouts.
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/dolphin_directoryviewpropertysettings.kcfg6
-rw-r--r--src/settings/viewpropertiesdialog.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/settings/dolphin_directoryviewpropertysettings.kcfg b/src/settings/dolphin_directoryviewpropertysettings.kcfg
index 7e62267a9..64242f8a3 100644
--- a/src/settings/dolphin_directoryviewpropertysettings.kcfg
+++ b/src/settings/dolphin_directoryviewpropertysettings.kcfg
@@ -34,9 +34,9 @@
<default>false</default>
</entry>
- <entry name="CategorizedSorting" type="Bool" >
- <label context="@label">Categorized Sorting</label>
- <whatsthis context="@info:whatsthis">When this option is enabled, the sorted items are summarized by their category.</whatsthis>
+ <entry name="GroupedSorting" type="Bool" >
+ <label context="@label">Grouped Sorting</label>
+ <whatsthis context="@info:whatsthis">When this option is enabled, the sorted items are categorized into groups.</whatsthis>
<default>false</default>
</entry>
diff --git a/src/settings/viewpropertiesdialog.cpp b/src/settings/viewpropertiesdialog.cpp
index bc8599ad9..7c4414ea2 100644
--- a/src/settings/viewpropertiesdialog.cpp
+++ b/src/settings/viewpropertiesdialog.cpp
@@ -268,7 +268,7 @@ void ViewPropertiesDialog::slotSortOrderChanged(int index)
void ViewPropertiesDialog::slotCategorizedSortingChanged()
{
- m_viewProps->setCategorizedSorting(m_showInGroups->isChecked());
+ m_viewProps->setGroupedSorting(m_showInGroups->isChecked());
markAsDirty(true);
}
@@ -379,7 +379,7 @@ void ViewPropertiesDialog::applyViewProperties()
m_dolphinView->setSorting(m_viewProps->sorting());
m_dolphinView->setSortOrder(m_viewProps->sortOrder());
m_dolphinView->setSortFoldersFirst(m_viewProps->sortFoldersFirst());
- m_dolphinView->setCategorizedSorting(m_viewProps->categorizedSorting());
+ m_dolphinView->setGroupedSorting(m_viewProps->groupedSorting());
m_dolphinView->setAdditionalInfoList(m_viewProps->additionalInfoList());
m_dolphinView->setPreviewsShown(m_viewProps->previewsShown());
m_dolphinView->setHiddenFilesShown(m_viewProps->hiddenFilesShown());
@@ -408,7 +408,7 @@ void ViewPropertiesDialog::loadSettings()
// load show preview, show in groups and show hidden files settings
m_previewsShown->setChecked(m_viewProps->previewsShown());
- m_showInGroups->setChecked(m_viewProps->categorizedSorting());
+ m_showInGroups->setChecked(m_viewProps->groupedSorting());
m_showInGroups->setEnabled(index == DolphinView::IconsView); // only the icons view supports categorized sorting
m_showHiddenFiles->setChecked(m_viewProps->hiddenFilesShown());