From 0976d8c436844d7bad650332e7dc3bced8882db3 Mon Sep 17 00:00:00 2001 From: asv Date: Wed, 22 Feb 2006 13:40:40 +0000 Subject: [PATCH] bug fixed: views' names are now stored in ' symbols not in ". --- src/Qtx/QtxWorkstack.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.39.2