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

@ -30,7 +30,11 @@ Q_IMPORT_PLUGIN(qtaccessiblewidgets)
int main( int argc, char ** argv ) {
#if QT_VERSION < 0x050000
qInstallMsgHandler(SysTrace::debug);
#else
qInstallMessageHandler(SysTrace::debug);
#endif
QApplication app( argc, argv );
#if defined(Q_OS_MAC)
QDir dir(QApplication::applicationDirPath());