diff options
Diffstat (limited to 'knights/proto_xboard.cpp')
-rw-r--r-- | knights/proto_xboard.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/knights/proto_xboard.cpp b/knights/proto_xboard.cpp index 9bdff6b..9be0fed 100644 --- a/knights/proto_xboard.cpp +++ b/knights/proto_xboard.cpp @@ -120,13 +120,13 @@ void proto_xboard::parse( const Command &command ) { if( Army == WHITE ) { - emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) ); - emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) ); + emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) ); + emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) ); } else { - emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) ); - emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) ); + emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) ); + emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) ); } } if( FEATURE_UserMove ) @@ -267,9 +267,9 @@ void proto_xboard::parse( const Command &command ) if( FEATURE_Time ) { if( Army == WHITE ) - emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) ); + emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) ); else - emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) ); + emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) ); } break; @@ -278,9 +278,9 @@ void proto_xboard::parse( const Command &command ) if( FEATURE_Time ) { if( Army == WHITE ) - emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) ); + emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) ); else - emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) ); + emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) ); } break; @@ -354,7 +354,7 @@ void proto_xboard::parse( const Command &command ) case CMD_Set_Board: if( FEATURE_SetBoard == TRUE ) { - emit output( TQString( "setboard %1" ).tqarg( cmd.getData() ) ); + emit output( TQString( "setboard %1" ).arg( cmd.getData() ) ); } else { @@ -446,7 +446,7 @@ void proto_xboard::parse( const TQString &string ) /* Hint */ if( strList[0] == "Hint:" ) { - emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strList[1] ) ) ); + emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).arg( FEATURE_MyName ).arg( strList[1] ) ) ); return; } @@ -468,56 +468,56 @@ void proto_xboard::parse( const TQString &string ) /* Tell User */ if( strList[0] == "telluser" ) { - emit output( Command( myID, CMD_Tell_User, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() - 9 ) ) ) ); + emit output( Command( myID, CMD_Tell_User, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() - 9 ) ) ) ); return; } /* Tell User Error */ if( strList[0] == "tellusererror" ) { - emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() - 14 ) ) ) ); + emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() - 14 ) ) ) ); return; } /* Error */ if( strList[0] == "Error" ) { - emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() ) ) ) ); + emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() ) ) ) ); return; } /* Tell Opponent */ if( strList[0] == "tellopponent" ) { - emit output( Command( myID, CMD_Tell_Opponent, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 13 ) ) ) ); + emit output( Command( myID, CMD_Tell_Opponent, TQString( "%1" ).arg( strIn.right( strIn.length() - 13 ) ) ) ); return; } /* Tell Others */ if( strList[0] == "tellothers" ) { - emit output( Command( myID, CMD_Tell_Others, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 11 ) ) ) ); + emit output( Command( myID, CMD_Tell_Others, TQString( "%1" ).arg( strIn.right( strIn.length() - 11 ) ) ) ); return; } /* Tell All */ if( strList[0] == "tellall" ) { - emit output( Command( myID, CMD_Tell_All, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 8 ) ) ) ); + emit output( Command( myID, CMD_Tell_All, TQString( "%1" ).arg( strIn.right( strIn.length() - 8 ) ) ) ); return; } /* Tell ICS */ if( strList[0] == "tellics" ) { - emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 8 ) ) ) ); + emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).arg( strIn.right( strIn.length() - 8 ) ) ) ); return; } /* Tell ICS No Alias */ if( strList[0] == "tellicsnoalias" ) { - emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 15 ) ) ) ); + emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).arg( strIn.right( strIn.length() - 15 ) ) ) ); return; } |