All pastes #440629 Raw Edit

SubOne

public cpp v1 · immutable
·published 2007-04-15 04:52 UTC
rendered paste body
	for ( QStringList::ConstIterator it = themeNames.begin(); it != themeNames.end(); ++it )    {		progressDiag.setLabel(i18n( "<qt>Installing <strong>%1</strong> theme</qt>" ).arg( *it ) );        kapp->processEvents();        if ( progressDiag.wasCancelled() )            break;		if ( !InstallTheme( *it, themeTmpFile ) )			errorThemes.append( *it );				progressDiag.progressBar()->advance( 1 );	}	if ( errorThemes.count() )	{		QString somethingWrong = i18n( "A problem occurred during the installation process.\n\n "			"The following themes were not installed:\n\n" );		for ( QStringList::ConstIterator it = errorThemes.begin(); it != errorThemes.end(); ++it )		{   	 		somethingWrong.append( *it );   	 		somethingWrong.append( "\n" );   	 	}		KMessageBox::error( parent_, somethingWrong.arg( *it ) );	}