]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/viewproperties.cpp
Allow zooming in and zooming out in the icons view.
[dolphin.git] / src / viewproperties.cpp
index fd4dfd8dd5ba1204513dabe132fece8062723149..45aadba23902dda48e8317a8f757764d4621b02e 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "viewproperties.h"
 #include "dolphinsettings.h"
-#include "generalsettings.h"
+#include "dolphin_generalsettings.h"
 
 #define FILE_NAME "/.directory"
 
@@ -70,8 +70,6 @@ ViewProperties::ViewProperties(const KUrl& url) :
     const QString file(m_filepath + FILE_NAME);
     m_node = new ViewPropertySettings(KSharedConfig::openConfig(file));
 
-    kDebug() << "------------------ global timestamp: " << settings->viewPropsTimestamp() << endl;
-
     const bool useDefaultProps = !useGlobalViewProps &&
                                  (!QFileInfo(file).exists() ||
                                   (m_node->timestamp() < settings->viewPropsTimestamp()));
@@ -197,6 +195,13 @@ void ViewProperties::save()
     m_changedProps = false;
 }
 
+KUrl ViewProperties::mirroredDirectory()
+{
+    QString basePath = KGlobal::mainComponent().componentName();
+    basePath.append("/view_properties/");
+    return KUrl(KStandardDirs::locateLocal("data", basePath));
+}
+
 QString ViewProperties::destinationDir(const QString& subDir) const
 {
     QString basePath = KGlobal::mainComponent().componentName();