┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/global.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.cpp')
-rw-r--r--src/global.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/global.cpp b/src/global.cpp
index 3d17a733b..197d6ec28 100644
--- a/src/global.cpp
+++ b/src/global.cpp
@@ -9,6 +9,7 @@
#include "dolphin_generalsettings.h"
#include "dolphindebug.h"
#include "dolphinmainwindowinterface.h"
+#include "views/viewproperties.h"
#include <KConfigWatcher>
#include <KDialogJobUiDelegate>
@@ -140,6 +141,12 @@ QVector<QPair<QSharedPointer<OrgKdeDolphinMainWindowInterface>, QStringList>> Do
return dolphinInterfaces;
}
+QPair<QString, Qt::SortOrder> Dolphin::sortOrderForUrl(QUrl &url)
+{
+ ViewProperties globalProps(url);
+ return QPair<QString, Qt::SortOrder>(globalProps.sortRole(), globalProps.sortOrder());
+}
+
double GlobalConfig::animationDurationFactor()
{
if (s_animationDurationFactor >= 0.0) {