TARGET_LINK_LIBRARIES(SUITApp ${_link_LIBRARIES})
INSTALL(TARGETS SUITApp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
- ADD_EXECUTABLE(TestSUITApp SUITApp.cxx)
- SET_TARGET_PROPERTIES(TestSUITApp PROPERTIES OUTPUT_NAME "SUITApp")
- TARGET_LINK_LIBRARIES(TestSUITApp ${_link_LIBRARIES} SUITApp)
- INSTALL(TARGETS TestSUITApp EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
+ ADD_EXECUTABLE(suitexe SUITApp.cxx)
+ TARGET_LINK_LIBRARIES(suitexe ${_link_LIBRARIES} SUITApp)
+ INSTALL(TARGETS suitexe EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
INSTALL(FILES ${SUITApp_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
-QT4_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
+QT_INSTALL_TS_RESOURCES("${_ts_RESOURCES}" "${SALOME_GUI_INSTALL_RES_DATA}")
Constructor
*/
SUITApp_Application::SUITApp_Application( int& argc, char** argv, SUIT_ExceptionHandler* hand )
- #ifdef ENABLE_TESTRECORDER
- : TestApplication( argc, argv ),
- #else
-#ifndef WIN32
+// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
+#if !defined(WIN32) && (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
// san: Opening an X display and choosing a visual most suitable for 3D visualization
// in order to make SALOME viewers work with non-native X servers
: QApplication( (Display*)Qtx::getDisplay(), argc, argv, Qtx::getVisual() ),
/*!
Constructor
*/
+// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
SUITApp_Application::SUITApp_Application( int& argc, char** argv, Type type, SUIT_ExceptionHandler* hand )
- #ifdef ENABLE_TESTRECORDER
- : TestApplication( argc, argv ),
- #else
: QApplication( argc, argv, type ),
- #endif
myExceptHandler( hand )
{
}
Q_OBJECT
public:
- SUITApp_Application( int& argc, char** argv, SUIT_ExceptionHandler* = 0 );
+ SUITApp_Application( int&, char**, SUIT_ExceptionHandler* = 0 );
+// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- SUITApp_Application( int& argc, char** argv, Type type, SUIT_ExceptionHandler* = 0 );
+ SUITApp_Application( int&, char**, Type, SUIT_ExceptionHandler* = 0 );
-
+#endif
virtual bool notify( QObject* receiver, QEvent* e );
- SUIT_ExceptionHandler* handler() const;
- void setHandler( SUIT_ExceptionHandler* );
+ SUIT_ExceptionHandler* handler() const;
+ void setHandler( SUIT_ExceptionHandler* );
private:
SUIT_ExceptionHandler* myExceptHandler;
}
};
- #ifdef ENABLE_TESTRECORDER
- class SALOME_QApplication : public TestApplication
- #else
- class SALOME_QApplication : public QApplication
- #endif
+ class SALOME_QApplication : public QApplication
{
public:
- #ifdef ENABLE_TESTRECORDER
- SALOME_QApplication( int& argc, char** argv ) : TestApplication( argc, argv ), myHandler ( 0 ) {}
- #else
SALOME_QApplication( int& argc, char** argv )
-#ifndef WIN32
+// TODO (QT5 PORTING) Below is a temporary solution, to allow compiling with Qt 5
+#if !defined WIN32 && QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
// san: Opening an X display and choosing a visual most suitable for 3D visualization
// in order to make SALOME viewers work with non-native X servers
: QApplication( (Display*)Qtx::getDisplay(), argc, argv, Qtx::getVisual() ),