From 2dab7c97751d34cf6fc888305f949d290c292f48 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 28 Jan 2013 21:18:12 +0100 Subject: Create Qt5 compatible version of trace event handler. Qt5 deprecates the way this was done before. Change-Id: Ic66bce2d1ffcb572a9ed9345abbbbc6bb6475af0 --- rbutil/rbutilqt/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rbutil/rbutilqt/main.cpp') 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()); -- cgit v1.1