Remove QT4 compatibility.

This commit is contained in:
rnv 2019-05-30 15:07:23 +03:00
parent 3cbe548f75
commit 614469e812
2 changed files with 2 additions and 9 deletions

View File

@ -117,11 +117,7 @@ ENDIF(SALOME_BUILD_GUI)
IF(SALOME_BUILD_GUI) IF(SALOME_BUILD_GUI)
# Qt # Qt
IF(NOT SALOME_GUI_BUILD_WITH_QT5) FIND_PACKAGE(SalomeQt5 REQUIRED)
FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
ELSE()
FIND_PACKAGE(SalomeQt5 REQUIRED)
ENDIF()
ENDIF(SALOME_BUILD_GUI) ENDIF(SALOME_BUILD_GUI)
# OCCT # OCCT

View File

@ -413,11 +413,8 @@ QFrame* NETGENPluginGUI_HypothesisCreator::buildFrame()
localSizeHeaders << tr( "LSZ_ENTRY_COLUMN" )<< tr( "LSZ_NAME_COLUMN" ) << tr( "LSZ_LOCALSIZE_COLUMN" ); localSizeHeaders << tr( "LSZ_ENTRY_COLUMN" )<< tr( "LSZ_NAME_COLUMN" ) << tr( "LSZ_LOCALSIZE_COLUMN" );
myLocalSizeTable->setHorizontalHeaderLabels(localSizeHeaders); myLocalSizeTable->setHorizontalHeaderLabels(localSizeHeaders);
myLocalSizeTable->horizontalHeader()->hideSection(LSZ_ENTRY_COLUMN); myLocalSizeTable->horizontalHeader()->hideSection(LSZ_ENTRY_COLUMN);
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
myLocalSizeTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
#else
myLocalSizeTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); myLocalSizeTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
#endif
myLocalSizeTable->resizeColumnToContents(LSZ_NAME_COLUMN); myLocalSizeTable->resizeColumnToContents(LSZ_NAME_COLUMN);
myLocalSizeTable->resizeColumnToContents(LSZ_LOCALSIZE_COLUMN); myLocalSizeTable->resizeColumnToContents(LSZ_LOCALSIZE_COLUMN);
myLocalSizeTable->setAlternatingRowColors(true); myLocalSizeTable->setAlternatingRowColors(true);