]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
HDFE19454: In case if we split viewer zone on three parts it is restored incorreclty...
authorvtn <vtn@opencascade.com>
Mon, 7 Apr 2008 12:36:45 +0000 (12:36 +0000)
committervtn <vtn@opencascade.com>
Mon, 7 Apr 2008 12:36:45 +0000 (12:36 +0000)
src/Qtx/QtxWorkstack.cxx

index ce0a5fc88d6105271b9ea2e0507df749fb431d18..a984edfe5fc97c949a17e2411ebe10601a1cc3f6 100644 (file)
@@ -38,6 +38,9 @@
 #include <QPainter>
 #include <QStyleOption>
 
+#include <QTextStream>
+#include <iostream>
+
 #define DARK_COLOR_LIGHT 250
 
 /*!
@@ -2749,8 +2752,11 @@ void QtxWorkstack::splitterInfo( QSplitter* split, QString& info ) const
 {
   if ( !split )
     return;
-
-  const QObjectList& objs = split->children();
+  //const QObjectList& objs = split->children();
+  QObjectList objs;
+  for(int si = 0; si < split->count(); si++) {
+    objs.append((QObject*)split->widget(si));
+  }
 
   QString sizesStr;
   QList<int> sizes = split->sizes();