diff options
| author | Peter Penz <[email protected]> | 2007-06-22 10:18:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-06-22 10:18:46 +0000 |
| commit | 4062c4cf2d9c3a6716ced8686fa2e2324261c0ec (patch) | |
| tree | d011dde8a6c19adb57a00f3d39a16a2e6d91fbd1 /src/viewpropertiesdialog.cpp | |
| parent | aed0e931958cc466974baf1307ea02d3f755880d (diff) | |
Allow to sort by rating, which can be quite useful in combination with the "Show in Groups" feature. Although still slow, it basically works. All the code is based on Rafael Fernández López patch available at http://media.ereslibre.es/2007/06/dolphin-21062007.diff.
svn path=/trunk/KDE/kdebase/apps/; revision=678801
Diffstat (limited to 'src/viewpropertiesdialog.cpp')
| -rw-r--r-- | src/viewpropertiesdialog.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/viewpropertiesdialog.cpp b/src/viewpropertiesdialog.cpp index 5d7fbc59f..a333d87b0 100644 --- a/src/viewpropertiesdialog.cpp +++ b/src/viewpropertiesdialog.cpp @@ -26,6 +26,9 @@ #include "dolphin_generalsettings.h" #include "viewproperties.h" +#include <config-nepomuk.h> +#include <nepomuk/resourcemanager.h> + #include <kcomponentdata.h> #include <klocale.h> #include <kiconloader.h> @@ -107,6 +110,12 @@ ViewPropertiesDialog::ViewPropertiesDialog(DolphinView* dolphinView) : m_sorting->addItem(i18n("By Owner")); m_sorting->addItem(i18n("By Group")); m_sorting->addItem(i18n("By Type")); +#ifdef HAVE_NEPOMUK + if (!Nepomuk::ResourceManager::instance()->init()) { + m_sorting->addItem(i18n("By Rating")); + m_sorting->addItem(i18n("By Tags")); + } +#endif m_sorting->setCurrentIndex(m_viewProps->sorting()); QHBoxLayout* sortingLayout = new QHBoxLayout(); |
