┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/viewproperties.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-02-18 18:54:22 +0000
committerPeter Penz <[email protected]>2007-02-18 18:54:22 +0000
commitbd8b41a13577eb197b721d00303c7056926502bf (patch)
tree475f85a3f4aaa010a28d14b9343b762f0caa24c4 /src/viewproperties.cpp
parentabf17941f7a052d25788d2f2f3c84e5aae935e29 (diff)
Don't use a hardcoded path in the view properties dialog for the mirrored directory, ask the class ViewProperties for the location instead.
svn path=/trunk/KDE/kdebase/apps/; revision=634899
Diffstat (limited to 'src/viewproperties.cpp')
-rw-r--r--src/viewproperties.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp
index 25aa98e0e..7101bed29 100644
--- a/src/viewproperties.cpp
+++ b/src/viewproperties.cpp
@@ -195,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();