]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/viewproperties.cpp
Merge branch 'frameworks'
[dolphin.git] / src / views / viewproperties.cpp
index 36c6338fe8f6ceff77614880410999f5a102a180..05c9935858aeecba142a7224ae16944de0900b92 100644 (file)
 #include "dolphin_generalsettings.h"
 
 #include <QUrl>
-#include <KDebug>
-#include <KGlobal>
+#include "dolphindebug.h"
 
-#include <KComponentData>
 #include <QCryptographicHash>
 #include <QDate>
 #include <QFile>
@@ -361,11 +359,11 @@ void ViewProperties::update()
 
 void ViewProperties::save()
 {
-    kDebug() << "Saving view-properties to" << m_filePath;
+    qCDebug(DolphinDebug) << "Saving view-properties to" << m_filePath;
     QDir dir;
     dir.mkpath(m_filePath);
     m_node->setVersion(CurrentViewPropertiesVersion);
-    m_node->writeConfig();
+    m_node->save();
     m_changedProps = false;
 }
 
@@ -390,7 +388,7 @@ QString ViewProperties::viewModePrefix() const
     case DolphinView::IconsView:   prefix = "Icons_"; break;
     case DolphinView::CompactView: prefix = "Compact_"; break;
     case DolphinView::DetailsView: prefix = "Details_"; break;
-    default: kWarning() << "Unknown view-mode of the view properties";
+    default: qCWarning(DolphinDebug) << "Unknown view-mode of the view properties";
     }
 
     return prefix;