}
}
info += ')';
+ printf( QString( info + '\n' ).latin1() );
}
void cutBrackets( QString& parameters )
{
QChar c1 = parameters[0];
- QChar c2 = parameters.length()-1;
+ QChar c2 = parameters[int(parameters.length()-1)];
if ( !parameters.isEmpty() && c1 == '(' && c2 == ')' )
parameters = parameters.mid( 1, parameters.length()-2 );
}
QString params( parameters );
// 1. begins and ends with brackets
QChar c1 = params[0];
- QChar c2 = params.length()-1;
+ QChar c2 = params[int(params.length()-1)];
bool ok = ( c1 == '(' && c2 == ')' );
if ( !ok ) return ok;
::cutBrackets( params );
*/
void QtxWorkstack::setSplitter( QSplitter* splitter, const QString& parameters, QMap< QSplitter*, QValueList<int> >& sMap )
{
+ printf( QString(parameters+'\n').latin1() );
if ( !::checkFormat( parameters ) ) {
printf( "\nInvalid format of workstack parameters. Positions of viewers can not be restored.\n" );
return;