X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMGUI%2FGEOMGUI_TextTreeWdg.cxx;h=33198fc20ea584228f378177f1d00f0c9b54ad2b;hb=HEAD;hp=93181d8f950542387dc0fc3a610d7b5b32a42a4e;hpb=4b84d5ef39e8bc3247c4d4fa9e1fddfac2431254;p=modules%2Fgeom.git diff --git a/src/GEOMGUI/GEOMGUI_TextTreeWdg.cxx b/src/GEOMGUI/GEOMGUI_TextTreeWdg.cxx old mode 100755 new mode 100644 index 93181d8f9..33198fc20 --- a/src/GEOMGUI/GEOMGUI_TextTreeWdg.cxx +++ b/src/GEOMGUI/GEOMGUI_TextTreeWdg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2015-2024 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 @@ -175,11 +175,8 @@ GEOMGUI_TextTreeWdg::GEOMGUI_TextTreeWdg( SalomeApp_Application* app ) 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 ); @@ -398,7 +395,7 @@ void GEOMGUI_TextTreeWdg::fillBranch( const BranchType& theBranchType, const QSt //================================================================================= QSharedPointer GEOMGUI_TextTreeWdg::getVisualProperty( const BranchType& theBranchType, - SalomeApp_Study* theStudy, + SalomeApp_Study* /*theStudy*/, const std::string& theEntry ) { switch ( theBranchType ) @@ -826,7 +823,7 @@ bool GEOMGUI_TextTreeWdg::setShapeItemVisibility( QSharedPointer //================================================================================= 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 ); }