Enable tracing to file. Attempt to fix last position restoration on S^3.
[dorian] / platform.cpp
index f72a073..24ceed9 100644 (file)
@@ -25,6 +25,8 @@ static const char *DORIAN_VERSION =
 #include "pkg/version.txt"
 ;
 
+#define DORIAN_LOG "dorian.txt"
+
 #ifdef Q_WS_MAEMO_5
 #   include <QtMaemo5/QMaemo5InformationBox>
 #else
@@ -100,3 +102,8 @@ void Platform::showBusy(QWidget *w, bool isBusy)
     Q_UNUSED(isBusy);
 #endif
 }
+
+QString Platform::traceFileName()
+{
+    return QDir::home().absoluteFilePath(DORIAN_LOG);
+}