-# Copyright (C) 2012-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-INCLUDE(UseQt4Ext)
+INCLUDE(UseQtExt)
# --- options ---
QtxSlider.h
QtxSplash.h
QtxToolBar.h
+ QtxToolButton.h
QtxToolTip.h
QtxTreeView.h
QtxValidator.h
- QtxWebBrowser.h
QtxWorkspace.h
QtxWorkspaceAction.h
QtxWorkstack.h
QtxWorkstackAction.h
)
+IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
+ SET(_moc_HEADERS ${_moc_HEADERS} QtxWebBrowser.h)
+ENDIF()
+
# obsolete files: not migrated to Qt4
# _moc_HEADERS << QtxListBox.h QtxTable.h
# TODO: migrate or remove?
# --- sources ---
-# sources / rcc wrappings
-QT4_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
-
# sources / moc wrappings
-QT4_WRAP_CPP(_moc_SOURCES ${_moc_HEADERS})
+QT_WRAP_MOC(_moc_SOURCES ${_moc_HEADERS})
+
+# sources / rcc wrappings
+QT_ADD_RESOURCES(_rcc_SOURCES ${_rcc_RESOURCES})
# sources / static
SET(_other_SOURCES
QtxSlider.cxx
QtxSplash.cxx
QtxToolBar.cxx
+ QtxToolButton.cxx
QtxToolTip.cxx
QtxTranslator.cxx
QtxTreeView.cxx
QtxValidator.cxx
- QtxWebBrowser.cxx
QtxWorkspace.cxx
QtxWorkspaceAction.cxx
QtxWorkstack.cxx
QtxWorkstackAction.cxx
)
+IF(SALOME_GUI_ENABLE_QTXWEBBROWSER)
+ SET(_other_SOURCES ${_other_SOURCES} QtxWebBrowser.cxx)
+ENDIF()
+
# obsolete files: not migrated to Qt4
# _other_SOURCES << QtxListBox.cxx QtxTable.cxx
# TODO: migrate or remove?
INSTALL(TARGETS qtx EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
INSTALL(FILES ${qtx_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}")