projects
/
dorian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix forward navigation control on Linux.
[dorian]
/
trace.h
diff --git
a/trace.h
b/trace.h
index
232e2f3
..
870bd87
100644
(file)
--- a/
trace.h
+++ b/
trace.h
@@
-1,10
+1,22
@@
#ifndef TRACE_H
#define TRACE_H
#ifndef TRACE_H
#define TRACE_H
+#include <QtGlobal>
#include <QtDebug>
#include <QString>
#include <QTime>
#include <QEvent>
#include <QtDebug>
#include <QString>
#include <QTime>
#include <QEvent>
+#include <QFile>
+
+#ifdef Q_OS_SYMBIAN
+# ifdef __PRETTY_FUNCTION__
+# define TRACE Trace _(__PRETTY_FUNCTION__)
+# else
+# define TRACE Trace _(__FUNCTION__)
+# endif
+#else
+# define TRACE Trace _(Q_FUNC_INFO)
+#endif
/** Trace helper. */
class Trace
/** Trace helper. */
class Trace
@@
-15,13
+27,16
@@
public:
static QString event(QEvent::Type t);
static void messageHandler(QtMsgType type, const char *msg);
static QtMsgType level;
static QString event(QEvent::Type t);
static void messageHandler(QtMsgType type, const char *msg);
static QtMsgType level;
+ static void setFileName(const QString &fileName);
+ static QString fileName();
protected:
protected:
- static const char *prefix();
+ static QString prefix();
QString name;
static int indent;
typedef struct {int type; const char *name;} EventName;
static EventName eventTab[];
QString name;
static int indent;
typedef struct {int type; const char *name;} EventName;
static EventName eventTab[];
+ static QFile file;
};
#endif // TRACE_H
};
#endif // TRACE_H