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:
parent
d06779d987
commit
2dab7c9775
4 changed files with 32 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue