- Changed the filename regexp based on a suggestion from Charles.

svn path=/trunk/kdebase/kwin/; revision=178060
This commit is contained in:
Fredrik Höglund 2002-09-15 19:19:52 +00:00
parent ae8a8f227d
commit 76a41a4709

View file

@ -102,7 +102,7 @@ void KeramikEmbedder::embed( const char *name )
QString codename( basename );
QImage image( name );
codename = codename.replace( QRegExp("[-,\\s]"), "_" );
codename = codename.replace( QRegExp("[^a-zA-Z0-9]"), "_" );
stream << "\tstatic const QRgb " << codename << "_data[] = {" << endl << "\t\t";
stream.setf( QTextStream::hex | QTextStream::right );