summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/systrace.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-28 21:18:12 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-02-08 22:38:57 +0100
commit2dab7c97751d34cf6fc888305f949d290c292f48 (patch)
tree895a3c4e52543494203c87a72b4884ad7f8e8db0 /rbutil/rbutilqt/systrace.h
parentd06779d9879e04964e533dd02e62e5c7007cb0b3 (diff)
downloadrockbox-2dab7c97751d34cf6fc888305f949d290c292f48.tar.gz
rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.tar.bz2
rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.zip
Create Qt5 compatible version of trace event handler.
Qt5 deprecates the way this was done before. Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0
Diffstat (limited to 'rbutil/rbutilqt/systrace.h')
-rw-r--r--rbutil/rbutilqt/systrace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/systrace.h b/rbutil/rbutilqt/systrace.h
index 8658df1cba..092d115489 100644
--- a/rbutil/rbutilqt/systrace.h
+++ b/rbutil/rbutilqt/systrace.h
@@ -29,7 +29,11 @@ class SysTrace : public QDialog
Q_OBJECT
public:
SysTrace(QWidget *parent);
+#if QT_VERSION < 0x050000
static void debug(QtMsgType type, const char* msg);
+#else
+ static void debug(QtMsgType type, const QMessageLogContext &context, const QString &msg);
+#endif
static QString getTrace() {return debugbuffer;}
static void save(QString filename = "");
private: