summaryrefslogtreecommitdiff
path: root/src/autosaver.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-17 02:03:21 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-17 02:03:21 +0100
commit3fcb4e226ebe126f6c3a289d34f1b6a83c1444c1 (patch)
tree4a9b7ed9ede825c7c11e1f024f11e9c4c01eafb1 /src/autosaver.cpp
parentEnhanced CMakeLists.txt (diff)
downloadrekonq-3fcb4e226ebe126f6c3a289d34f1b6a83c1444c1.tar.xz
qDebug && qWarning --> kDebug && kWarning
Diffstat (limited to 'src/autosaver.cpp')
-rw-r--r--src/autosaver.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/autosaver.cpp b/src/autosaver.cpp
index 965d550b..535d8a2b 100644
--- a/src/autosaver.cpp
+++ b/src/autosaver.cpp
@@ -18,10 +18,15 @@
 *
 * ============================================================ */
+// Local Includes
#include "autosaver.h"
+// KDE Includes
+#include <KDebug>
+
+// Qt Includes
#include <QtCore>
-#include <QtDebug>
+
#define AUTOSAVE_IN 1000 * 3 // seconds
#define MAXWAIT 1000 * 15 // seconds
@@ -36,7 +41,7 @@ AutoSaver::AutoSaver(QObject *parent) : QObject(parent)
AutoSaver::~AutoSaver()
{
if (m_timer.isActive())
- qWarning() << "AutoSaver: still active when destroyed, changes not saved.";
+ kWarning() << "AutoSaver: still active when destroyed, changes not saved.";
}
@@ -69,8 +74,9 @@ void AutoSaver::saveIfNeccessary()
return;
m_timer.stop();
m_firstChange = QTime();
- if (!QMetaObject::invokeMethod(parent(), "save", Qt::DirectConnection)) {
- qWarning() << "AutoSaver: error invoking slot save() on parent";
+ if (!QMetaObject::invokeMethod(parent(), "save", Qt::DirectConnection))
+ {
+ kWarning() << "AutoSaver: error invoking slot save() on parent";
}
}