From: asv Date: Wed, 22 Feb 2006 13:40:40 +0000 (+0000) Subject: bug fixed: views' names are now stored in ' symbols not in ". X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0976d8c436844d7bad650332e7dc3bced8882db3;p=modules%2Fgui.git bug fixed: views' names are now stored in ' symbols not in ". --- diff --git a/src/Qtx/QtxWorkstack.cxx b/src/Qtx/QtxWorkstack.cxx index 066f072af..2f84f332d 100644 --- a/src/Qtx/QtxWorkstack.cxx +++ b/src/Qtx/QtxWorkstack.cxx @@ -1169,7 +1169,7 @@ void QtxWorkstack::splitterInfo( QSplitter* split, QString& info ) const QWidgetList views = ((QtxWorkstackArea*)it.current())->widgetList(); info += "(views"; for ( QWidgetListIt wIt( views ); wIt.current(); ++wIt ) - info += QString( " \"%1\"" ).arg( wIt.current()->name() ); + info += QString( " '%1'" ).arg( wIt.current()->name() ); info += ')'; } } @@ -1281,7 +1281,7 @@ QStringList getChildren( const QString& str ) // getViewName( example, 1 ) -> "AnotherView", etc. QString getViewName( const QString& str, int i ) { - QRegExp exp( "\"([\\w\\s]+)\"" ); + QRegExp exp( "'([\\w\\s]+)'" ); int start = 0; // start index of view name in the string int num = 0 ; // index of found match while ( ( start = exp.search( str, start ) ) != -1 && num < i ) {