소스 검색

Fixed deprecated warning with Qt5.

Sascha Zelzer 10 년 전
부모
커밋
24a403de35
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      Libs/CommandLineModules/Core/ctkCmdLineModuleConcurrentHelpers.cpp

+ 4 - 0
Libs/CommandLineModules/Core/ctkCmdLineModuleConcurrentHelpers.cpp

@@ -56,7 +56,11 @@ ctkCmdLineModuleReferenceResult ctkCmdLineModuleConcurrentRegister::operator()(c
     }
     return ctkCmdLineModuleReferenceResult(moduleUrl, e.message());
   }
+#if (QT_VERSION >= QT_VERSION_CHECK(5,0,0))
+  catch (const QException& e)
+#else
   catch (const QtConcurrent::Exception& e)
+#endif
   {
     if (this->Debug)
     {