- List of objects is sorted on the first page of Calcualtion Case wizard.
myGeomObjects->setSelectionMode( QListWidget::SingleSelection );
myGeomObjects->setEditTriggers( QListWidget::NoEditTriggers );
myGeomObjects->setViewMode( QListWidget::ListMode );
+ myGeomObjects->setSortingEnabled( true );
QFrame* aBtnsFrame = new QFrame( aPage );
QVBoxLayout* aBtnsLayout = new QVBoxLayout( aBtnsFrame );
Handle(HYDROData_Zone) aZone = Handle(HYDROData_Zone)::DownCast( myData );
if ( !aZone.IsNull() )
{
- HYDROData_SequenceOfObjects::Iterator anIter( aZone->GetGeometryObjects() );
+ HYDROData_SequenceOfObjects aSeq = aZone->GetGeometryObjects();
+ HYDROData_SequenceOfObjects::Iterator anIter( aSeq );
for ( ; anIter.More(); anIter.Next() )
{
Handle(HYDROData_Object) aRefGeomObj =