mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Removed enums SortByRating and SortByTags. They never have been activated yet because of performance issues...
svn path=/trunk/KDE/kdebase/apps/; revision=1061595
This commit is contained in:
parent
5e25098037
commit
a14119587a
3 changed files with 2 additions and 16 deletions
|
@ -113,9 +113,7 @@ public:
|
|||
SortByOwner,
|
||||
SortByGroup,
|
||||
SortByType,
|
||||
SortByRating,
|
||||
SortByTags,
|
||||
MaxSortEnum = SortByTags
|
||||
MaxSortEnum = SortByType
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
|
||||
bool ViewProperties::m_nepomukSupport = false;
|
||||
|
||||
#define FILE_NAME "/.directory"
|
||||
|
||||
ViewProperties::ViewProperties(const KUrl& url) :
|
||||
|
@ -162,15 +160,7 @@ void ViewProperties::setSorting(DolphinView::Sorting sorting)
|
|||
|
||||
DolphinView::Sorting ViewProperties::sorting() const
|
||||
{
|
||||
// If Nepomuk is not available, return SortByName as fallback if SortByRating
|
||||
// or SortByTags is stored.
|
||||
DolphinView::Sorting sorting = static_cast<DolphinView::Sorting>(m_node->sorting());
|
||||
const bool sortByName = !m_nepomukSupport &&
|
||||
((sorting == DolphinView::SortByRating) || (sorting == DolphinView::SortByTags));
|
||||
if (sortByName) {
|
||||
sorting = DolphinView::SortByName;
|
||||
}
|
||||
return sorting;
|
||||
return static_cast<DolphinView::Sorting>(m_node->sorting());
|
||||
}
|
||||
|
||||
void ViewProperties::setSortOrder(Qt::SortOrder sortOrder)
|
||||
|
|
|
@ -169,8 +169,6 @@ private:
|
|||
bool m_autoSave;
|
||||
QString m_filepath;
|
||||
ViewPropertySettings* m_node;
|
||||
|
||||
static bool m_nepomukSupport;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue