]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug IPAL19267 - Qt4 porting: incorrect restored GUI state
authorouv <ouv@opencascade.com>
Tue, 18 Mar 2008 13:54:49 +0000 (13:54 +0000)
committerouv <ouv@opencascade.com>
Tue, 18 Mar 2008 13:54:49 +0000 (13:54 +0000)
src/Qtx/QtxWorkstack.cxx

index 4796645d161f75843f4c2e01ac6c50c826479061..500e21558b5e167641b3f6746abf0d5257bea3ed 100644 (file)
@@ -2778,13 +2778,14 @@ void QtxWorkstack::splitterInfo( QSplitter* split, QString& info ) const
 
   info += QString( "(splitter orientation=%1 sizes=%3 " ).arg( split->orientation() ).arg( sizesStr );
 
-  for ( QObjectList::const_iterator it = objs.begin(); it != objs.end(); ++it )
+  for( int index = 0, count = split->count(); index < count; index++ )
   {
-    if ( (*it)->inherits( "QSplitter" ) )
-           splitterInfo( (QSplitter*)*it, info );
-    else if ( (*it)->inherits( "QtxWorkstackArea" ) )
+    QObject* obj = split->widget( index );
+    if ( obj->inherits( "QSplitter" ) )
+           splitterInfo( (QSplitter*)obj, info );
+    else if ( obj->inherits( "QtxWorkstackArea" ) )
     {
-           QtxWorkstackArea* area = (QtxWorkstackArea*)*it;
+           QtxWorkstackArea* area = (QtxWorkstackArea*)obj;
            if ( area->isEmpty() )
              continue;
            info += QString( "(views active='%1'" ).arg( area->activeWidget()->objectName() );