1 // File : CAF_Tools.cxx
7 #include <TCollection_ExtendedString.hxx>
10 Converts TCollection_ExtendedString 'src' to Qt string. [ static ]
12 QString CAF_Tools::toQString ( const TCollection_ExtendedString& src )
14 return QString( (const QChar*)src.ToExtString(), src.Length() );
18 Converts Qt string to TCollection_ExtendedString. [ static ]
20 TCollection_ExtendedString CAF_Tools::toExtString ( const QString& src )
22 TCollection_ExtendedString result;
23 for ( int i = 0; i < (int)src.length(); i++ )
24 result.Insert( i + 1, src[ i ].unicode() );