diff options
Diffstat (limited to 'kompare/tests/cvsdiff/unifiedm.diff')
-rw-r--r-- | kompare/tests/cvsdiff/unifiedm.diff | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kompare/tests/cvsdiff/unifiedm.diff b/kompare/tests/cvsdiff/unifiedm.diff index 356a7f52..01ee0297 100644 --- a/kompare/tests/cvsdiff/unifiedm.diff +++ b/kompare/tests/cvsdiff/unifiedm.diff @@ -37,7 +37,7 @@ diff -u -r1.26 dcop.cpp #include "marshall.cpp" -+typedef QMap<QString, QString> UserList; ++typedef QMap<TQString, TQString> UserList; + static DCOPClient* dcop = 0; @@ -66,7 +66,7 @@ diff -u -r1.26 dcop.cpp +void callFunction( const char* app, const char* obj, const char* func, const QCStringList args ) { - - QString f = func; // Qt is better with unicode strings, so use one. + TQString f = func; // Qt is better with unicode strings, so use one. int left = f.find( '(' ); int right = f.find( ')' ); @@ -136,7 +163,7 @@ @@ -188,7 +188,7 @@ diff -u -r1.26 dcop.cpp + * Return a list of available DCOP sessions for the specified user + * An empty list means no sessions are available, or an error occurred. + */ -+QStringList dcopSessionList( const QString &user, const QString &home ) ++QStringList dcopSessionList( const TQString &user, const TQString &home ) +{ + if( home.isEmpty() ) + { @@ -228,7 +228,7 @@ diff -u -r1.26 dcop.cpp + * Do the actual DCOP call + */ +void runDCOP( QCStringList args, UserList users, Session session, -+ const QString sessionName, bool readStdin ) ++ const TQString sessionName, bool readStdin ) +{ QCString app; QCString objid; @@ -333,7 +333,7 @@ diff -u -r1.26 dcop.cpp + QStringList sessions; + bool presetDCOPServer = false; +// char *dcopStr = 0L; -+ QString dcopServer; ++ TQString dcopServer; + + for( it = users.begin(); it != users.end() || firstRun; it++ ) + { @@ -402,8 +402,8 @@ diff -u -r1.26 dcop.cpp + ( getenv( "ICEAUTHORITY" ) == 0 || getenv( "DISPLAY" ) == 0 ) ) ) + { + // Check for ICE authority file and if the file can be read by us -+ QString home = it.data(); -+ QString iceFile = it.data() + "/.ICEauthority"; ++ TQString home = it.data(); ++ TQString iceFile = it.data() + "/.ICEauthority"; + QFileInfo fi( iceFile ); + if( iceFile.isEmpty() ) + { @@ -452,7 +452,7 @@ diff -u -r1.26 dcop.cpp + { + if( !presetDCOPServer && !users.isEmpty() ) + { -+ QString dcopFile = it.data() + "/" + *sIt; ++ TQString dcopFile = it.data() + "/" + *sIt; + QFile f( dcopFile ); + if( !f.open( IO_ReadOnly ) ) + { @@ -549,9 +549,9 @@ diff -u -r1.26 dcop.cpp +{ + bool readStdin = false; + int numOptions = 0; -+ QString user; ++ TQString user; + Session session = DefaultSession; -+ QString sessionName; ++ TQString sessionName; + + // Scan for command-line options first + for( int pos = 1 ; pos <= argc - 1 ; pos++ ) @@ -567,7 +567,7 @@ diff -u -r1.26 dcop.cpp + { + if( pos <= argc - 2 ) + { -+ user = QString::fromLocal8Bit( argv[ pos + 1] ); ++ user = TQString::fromLocal8Bit( argv[ pos + 1] ); + numOptions +=2; + pos++; + } @@ -665,7 +665,7 @@ diff -u -r1.2 dcopfind.cpp -bool findObject( const char* app, const char* obj, const char* func, int argc, char** args ) +bool findObject( const char* app, const char* obj, const char* func, QCStringList args ) { - QString f = func; // Qt is better with unicode strings, so use one. + TQString f = func; // Qt is better with unicode strings, so use one. int left = f.find( '(' ); @@ -118,7 +118,7 @@ f = fc; @@ -712,11 +712,11 @@ diff -u -r1.3 marshall.cpp } --void marshall(QDataStream &arg, int argc, char **argv, int &i, QString type) -+void marshall( QDataStream &arg, QCStringList args, uint &i, QString type ) +-void marshall(QDataStream &arg, int argc, char **argv, int &i, TQString type) ++void marshall( QDataStream &arg, QCStringList args, uint &i, TQString type ) { - if (type == "TQStringList") -- type = "QValueList<QString>"; +- type = "QValueList<TQString>"; - if (type == "QCStringList") - type = "QValueList<QCString>"; - if (i >= argc) @@ -724,7 +724,7 @@ diff -u -r1.3 marshall.cpp - tqWarning("Not enough arguments."); - exit(1); - } -- QString s = QString::fromLocal8Bit(argv[i]); +- TQString s = TQString::fromLocal8Bit(argv[i]); - - if ( type == "int" ) - arg << s.toInt(); @@ -752,7 +752,7 @@ diff -u -r1.3 marshall.cpp - arg << s; - else if ( type == "QCString" ) - arg << QCString( argv[i] ); -- else if ( type == "QColor" ) +- else if ( type == "TQColor" ) - arg << mkColor( s ); - else if ( type == "TQPoint" ) - arg << mkPoint( s ); @@ -771,14 +771,14 @@ diff -u -r1.3 marshall.cpp - arg << QVariant( mkSize( s.mid(6, s.length()-7) ) ); - else if ( s.left( 6 ) == "QRect(" ) - arg << QVariant( mkRect( s.mid(6, s.length()-7) ) ); -- else if ( s.left( 7 ) == "QColor(" ) +- else if ( s.left( 7 ) == "TQColor(" ) - arg << QVariant( mkColor( s.mid(7, s.length()-8) ) ); - else - arg << QVariant( s ); - } else if ( type.startsWith("QValueList<")) { - type = type.mid(11, type.length() - 12); - QStringList list; -- QString delim = s; +- TQString delim = s; - if (delim == "[") - delim = "]"; - if (delim == "(") @@ -787,7 +787,7 @@ diff -u -r1.3 marshall.cpp - QByteArray dummy_data; - QDataStream dummy_arg(dummy_data, IO_WriteOnly); + if (type == "TQStringList") -+ type = "QValueList<QString>"; ++ type = "QValueList<TQString>"; + if (type == "QCStringList") + type = "QValueList<QCString>"; + if( i > args.count() ) @@ -795,7 +795,7 @@ diff -u -r1.3 marshall.cpp + tqWarning("Not enough arguments."); + exit(1); + } -+ QString s = QString::fromLocal8Bit( args[ i ] ); ++ TQString s = TQString::fromLocal8Bit( args[ i ] ); - int j = i; - int count = 0; @@ -851,7 +851,7 @@ diff -u -r1.3 marshall.cpp + arg << s; + else if ( type == "QCString" ) + arg << QCString( args[ i ] ); -+ else if ( type == "QColor" ) ++ else if ( type == "TQColor" ) + arg << mkColor( s ); + else if ( type == "TQPoint" ) + arg << mkPoint( s ); @@ -870,14 +870,14 @@ diff -u -r1.3 marshall.cpp + arg << QVariant( mkSize( s.mid(6, s.length()-7) ) ); + else if ( s.left( 6 ) == "QRect(" ) + arg << QVariant( mkRect( s.mid(6, s.length()-7) ) ); -+ else if ( s.left( 7 ) == "QColor(" ) ++ else if ( s.left( 7 ) == "TQColor(" ) + arg << QVariant( mkColor( s.mid(7, s.length()-8) ) ); + else + arg << QVariant( s ); + } else if ( type.startsWith("QValueList<")) { + type = type.mid(11, type.length() - 12); + QStringList list; -+ QString delim = s; ++ TQString delim = s; + if (delim == "[") + delim = "]"; + if (delim == "(") @@ -895,7 +895,7 @@ diff -u -r1.3 marshall.cpp + tqWarning("List end-delimiter '%s' not found.", delim.latin1()); + exit(1); + } -+ if( QString::fromLocal8Bit( args[ j ] ) == delim ) ++ if( TQString::fromLocal8Bit( args[ j ] ) == delim ) + break; + marshall( dummy_arg, args, j, type ); + count++; @@ -908,7 +908,7 @@ diff -u -r1.3 marshall.cpp + tqWarning("List end-delimiter '%s' not found.", delim.latin1()); + exit(1); + } -+ if( QString::fromLocal8Bit( args[ i ] ) == delim ) ++ if( TQString::fromLocal8Bit( args[ i ] ) == delim ) + break; + marshall( arg, args, i, type ); + } |