diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-01-28 21:18:12 +0100 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-02-08 22:38:57 +0100 |
| commit | 2dab7c97751d34cf6fc888305f949d290c292f48 (patch) | |
| tree | 895a3c4e52543494203c87a72b4884ad7f8e8db0 /rbutil/rbutilqt/main.cpp | |
| parent | d06779d9879e04964e533dd02e62e5c7007cb0b3 (diff) | |
| download | rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.zip rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.tar.gz rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.tar.bz2 rockbox-2dab7c97751d34cf6fc888305f949d290c292f48.tar.xz | |
Create Qt5 compatible version of trace event handler.
Qt5 deprecates the way this was done before.
Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
| -rw-r--r-- | rbutil/rbutilqt/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp index 75b98cf..7d57f42 100644 --- a/rbutil/rbutilqt/main.cpp +++ b/rbutil/rbutilqt/main.cpp @@ -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()); |