-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2021 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
GeometryGUI::GetGeomGen()->GetEntriesToReduceStudy( keptObjects, parentsObjects,
subObjects, otherObjects );
- for ( int i = 0; i < keptObjects->length(); i++ )
+ for ( unsigned long i = 0; i < keptObjects->length(); i++ )
myKeptObjects.insert( keptObjects[i].in() );
- for( int i = 0; i< otherObjects->length(); i++ )
+ for( unsigned long i = 0; i< otherObjects->length(); i++ )
myRemovedObjects.insert( otherObjects[i].in() );
- for( int i = 0; i< parentsObjects->length(); i++ )
+ for( unsigned long i = 0; i< parentsObjects->length(); i++ )
myListParents.insert( parentsObjects[i].in() );
- for( int i = 0; i< subObjects->length(); i++ )
+ for( unsigned long i = 0; i< subObjects->length(); i++ )
myListSubObjects.insert( subObjects[i].in() );
update();
QTreeWidgetItem * headerItem = new QTreeWidgetItem( columnNames );
theTreeWidget->setHeaderItem ( headerItem );
theTreeWidget->header()->moveSection( 1, 0 );
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
- theTreeWidget->header()->setClickable( true );
- theTreeWidget->header()->setMovable( false );
- theTreeWidget->header()->setResizeMode( 1, QHeaderView::ResizeToContents );
-#else
theTreeWidget->header()->setSectionsClickable( true );
theTreeWidget->header()->setSectionsMovable( false );
theTreeWidget->header()->setSectionResizeMode( 1, QHeaderView::ResizeToContents );
-#endif
+
theTreeWidget->setSelectionMode( QAbstractItemView::ExtendedSelection );
}
myDisplayer.EraseWithChildren( new SALOME_InteractiveObject( studyEntry.c_str(), "GEOM", "TEMP_IO" ) );
// hide references if any
std::vector< _PTR(SObject) > vso = aStudy->FindDependances(obj);
- for ( int i = 0; i < vso.size(); i++ ) {
+ for ( int i = 0; i < (int)vso.size(); i++ ) {
_PTR(SObject) refObj = vso[i];
aDrw = aStudyBuilder->FindOrCreateAttribute( refObj, "AttributeDrawable" );
aDrw->SetDrawable( false );
GEOMToolsGUI_TreeWidgetItem::GEOMToolsGUI_TreeWidgetItem( QTreeWidget* view, const QStringList &strings,
char* studyEntry, int type )
:QTreeWidgetItem( view, strings, type ),
- myStudyEntry( studyEntry ),
- myVisible( false )
+ myVisible( false ),
+ myStudyEntry( studyEntry )
{
}
GEOMToolsGUI_TreeWidgetItem::GEOMToolsGUI_TreeWidgetItem( QTreeWidgetItem* parent, const QStringList &strings,
char* studyEntry, int type )
:QTreeWidgetItem( parent, strings, type ),
- myStudyEntry( studyEntry ),
- myVisible( false )
+ myVisible( false ),
+ myStudyEntry( studyEntry )
{
}