summaryrefslogtreecommitdiffstats
path: root/knights/pgn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/pgn.cpp')
-rw-r--r--knights/pgn.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/knights/pgn.cpp b/knights/pgn.cpp
index a0b4674..c2a827a 100644
--- a/knights/pgn.cpp
+++ b/knights/pgn.cpp
@@ -134,11 +134,11 @@ TQStringList* pgn::notation( const int format )
Line = ( tmp + 2 ) >> 1;
if( ( tmp % 2 ) == 0 )
{
- notation = TQString( "%1. %2" ).tqarg( Line ).tqarg( (*IT).SAN );
+ notation = TQString( "%1. %2" ).arg( Line ).arg( (*IT).SAN );
}
else
{
- notation = TQString( "%1... %2" ).tqarg( Line ).tqarg( (*IT).SAN );
+ notation = TQString( "%1... %2" ).arg( Line ).arg( (*IT).SAN );
}
list->append( notation );
tmp++;
@@ -152,13 +152,13 @@ TQStringList* pgn::notation( const int format )
Line = ( tmp + 2 ) >> 1;
if( ( tmp % 2 ) == 0 )
{
- notation = TQString( "%1. %2" ).tqarg( Line ).tqarg( (*IT).SAN );
+ notation = TQString( "%1. %2" ).arg( Line ).arg( (*IT).SAN );
}
else
{
if( showLineNumber )
{
- notation = TQString( "%1... %2" ).tqarg( Line ).tqarg( (*IT).SAN );
+ notation = TQString( "%1... %2" ).arg( Line ).arg( (*IT).SAN );
}
else
{
@@ -169,20 +169,20 @@ TQStringList* pgn::notation( const int format )
/* Insert NAGs */
if( (*IT).NAG != 0 )
{
- notation += TQString( " $%1" ).tqarg( TQString::number( (*IT).NAG ) );
+ notation += TQString( " $%1" ).arg( TQString::number( (*IT).NAG ) );
}
/* Insert RAVs */
annon = RAV.find( tmp );
if( annon != NULL )
{
- notation += TQString( " (%1)" ).tqarg( annon->text );
+ notation += TQString( " (%1)" ).arg( annon->text );
showLineNumber = true;
}
/* Insert Annotations */
annon = annotations.find( tmp );
if( annon != NULL )
{
- notation += TQString( " {%1}" ).tqarg( annon->text );
+ notation += TQString( " {%1}" ).arg( annon->text );
showLineNumber = true;
}
list->append( notation );
@@ -204,7 +204,7 @@ TQString pgn::caption( void )
{
TQString caption;
- caption = i18n( "%1 vs. %2").tqarg( TAG_White ).tqarg( TAG_Black );
+ caption = i18n( "%1 vs. %2").arg( TAG_White ).arg( TAG_Black );
return caption;
}
///////////////////////////////////////
@@ -288,8 +288,8 @@ void pgn::init( void )
uname( &unamePtr );
/* Build Date */
- qdt = TQDateTime::tqcurrentDateTime();
- TAG_Date = TQString("%1.%2.%3").tqarg(qdt.date().year(),4).tqarg(qdt.date().month(),2).tqarg(qdt.date().day(),2);
+ qdt = TQDateTime::currentDateTime();
+ TAG_Date = TQString("%1.%2.%3").arg(qdt.date().year(),4).arg(qdt.date().month(),2).arg(qdt.date().day(),2);
TAG_Date = TAG_Date.replace( TQRegExp("\\s"), TQString("0") );
TAG_Time = qdt.time().toString();
@@ -387,7 +387,7 @@ bool pgn::load( const int pos )
/* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource );
connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
- Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).tqarg( TAG_White ).tqarg( TAG_Black ) );
+ Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) );
pgnView->init();
File.at( File_Position );
currentLine = "";
@@ -950,7 +950,7 @@ void pgn::print( void )
{
/* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource );
- Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).tqarg( TAG_White ).tqarg( TAG_Black ) );
+ Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) );
connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
pgnView->init();
}