浏览代码

Merge branch '482-fix-ctkTestApplication-qt4-build'

* 482-fix-ctkTestApplication-qt4-build:
  Fix build of ctkTestApplication.cpp with Qt4. Fixes #482
Jean-Christophe Fillion-Robin 11 年之前
父节点
当前提交
383c477dc3
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Libs/Widgets/ctkTestApplication.cpp

+ 4 - 2
Libs/Widgets/ctkTestApplication.cpp

@@ -119,10 +119,12 @@ int ctkTestApplication::exec(bool reportErrorsOnExit)
 //-----------------------------------------------------------------------------
 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
 void ctkTestApplication::messageHandler(QtMsgType type, const QMessageLogContext& /*context*/, const QString& msg)
+{
 #else
-void ctkTestApplication::messageHandler(QtMsgType type, const char *msg)
-#endif
+void ctkTestApplication::messageHandler(QtMsgType type, const char *msgAsStr)
 {
+  QString msg(msgAsStr);
+#endif
   switch(type)
   {
   case QtDebugMsg: