1
0
Fork 0
forked from len0rd/rockbox

Create Qt5 compatible version of trace event handler.

Qt5 deprecates the way this was done before.

Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0
This commit is contained in:
Dominik Riebeling 2013-01-28 21:18:12 +01:00
parent d06779d987
commit 2dab7c9775
4 changed files with 32 additions and 0 deletions

View file

@ -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: