-// Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2015-2023 CEA, EDF, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
headerItem->setIcon( 1, myVisibleIcon );
setHeaderItem ( headerItem );
header()->moveSection( 1, 0 );
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- header()->setResizeMode( 1, QHeaderView::ResizeToContents );
-#else
header()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );
-#endif
+
QStringList rootNames;
rootNames << tr("GEOM_DIMENSIONS") << "";
myDimensionsItem = new QTreeWidgetItem( this, rootNames );
//=================================================================================
QSharedPointer<GEOMGUI_TextTreeWdg::VisualProperty>
GEOMGUI_TextTreeWdg::getVisualProperty( const BranchType& theBranchType,
- SalomeApp_Study* theStudy,
+ SalomeApp_Study* /*theStudy*/,
const std::string& theEntry )
{
switch ( theBranchType )
//=================================================================================
void GEOMGUI_TextTreeWdg::redisplay( QString theEntry )
{
- Handle(SALOME_InteractiveObject) io = new SALOME_InteractiveObject( theEntry.toLatin1().constData(), "GEOM", "TEMP_IO" );
+ Handle(SALOME_InteractiveObject) io = new SALOME_InteractiveObject( theEntry.toUtf8().constData(), "GEOM", "TEMP_IO" );
myDisplayer.Redisplay( io );
}