## Prerequisites From GUI:
##
# Qt
- IF(NOT SALOME_GUI_BUILD_WITH_QT5)
- FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui QtXml)
- ELSE()
- FIND_PACKAGE(SalomeQt5 REQUIRED)
- ENDIF()
+ FIND_PACKAGE(SalomeQt5 REQUIRED)
# SIP
FIND_PACKAGE(SalomeSIP REQUIRED) # should come after Python and before PyQt5
# PyQt
- IF (NOT SALOME_GUI_BUILD_WITH_QT5)
- FIND_PACKAGE(SalomePyQt4 REQUIRED)
- ELSE()
- FIND_PACKAGE(SalomePyQt5 REQUIRED)
- ENDIF()
+ FIND_PACKAGE(SalomePyQt5 REQUIRED)
# Qwt
FIND_PACKAGE(SalomeQwt REQUIRED)
ELSE(EXISTS ${GUI_ROOT_DIR})
myTable->hideColumn( COL_PUBLISHED );
myTable->hideColumn( COL_SHAPEID );
myTable->hideColumn( COL_BAD_MESH );
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- myTable->horizontalHeader()->setResizeMode( COL_ERROR, QHeaderView::Interactive );
-#else
myTable->horizontalHeader()->setSectionResizeMode( COL_ERROR, QHeaderView::Interactive );
-#endif
myTable->setWordWrap( true );
myTable->horizontalHeader()->setStretchLastSection( true );
myTable->setMinimumWidth( 500 );
myInfo->setColumnCount( 2 );
myInfo->setHeaderLabels( QStringList() << tr( "PROPERTY" ) << tr( "VALUE" ) );
myInfo->header()->setStretchLastSection( true );
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- myInfo->header()->setResizeMode( 0, QHeaderView::ResizeToContents );
-#else
myInfo->header()->setSectionResizeMode( 0, QHeaderView::ResizeToContents );
-#endif
myInfo->setItemDelegate( new ItemDelegate( myInfo ) );
QVBoxLayout* l = new QVBoxLayout( centralWidget() );
l->setMargin( 0 );
myTree->setColumnCount( 2 );
myTree->header()->setStretchLastSection( true );
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- myTree->header()->setResizeMode( 0, QHeaderView::ResizeToContents );
-#else
myTree->header()->setSectionResizeMode( 0, QHeaderView::ResizeToContents );
-#endif
myTree->header()->hide();
l->addWidget( myTree );