From c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:56:31 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 94844816550ad672ccfcdc25659c625546239998. --- kspread/tests/inspector.cc | 6 +++--- kspread/tests/tester.cc | 2 +- kspread/tests/testrunner.cc | 24 ++++++++++++------------ 3 files changed, 16 insertions(+), 16 deletions(-) (limited to 'kspread/tests') diff --git a/kspread/tests/inspector.cc b/kspread/tests/inspector.cc index f861343c..17179793 100644 --- a/kspread/tests/inspector.cc +++ b/kspread/tests/inspector.cc @@ -19,9 +19,9 @@ #include "inspector.h" -#include +#include #include -#include +#include #include @@ -65,7 +65,7 @@ static TQString boolAsString( bool b ) static TQString longAsHexstring( long l ) { - return TQString("%1").arg(l, 8, 16); + return TQString("%1").tqarg(l, 8, 16); } static TQString dirAsString( Sheet::LayoutDirection dir ) diff --git a/kspread/tests/tester.cc b/kspread/tests/tester.cc index cdadeaef..05df95d1 100644 --- a/kspread/tests/tester.cc +++ b/kspread/tests/tester.cc @@ -20,7 +20,7 @@ #include "tester.h" #include -#include +#include using namespace KSpread; diff --git a/kspread/tests/testrunner.cc b/kspread/tests/testrunner.cc index fa45c9c0..53fe60b3 100644 --- a/kspread/tests/testrunner.cc +++ b/kspread/tests/testrunner.cc @@ -22,8 +22,8 @@ #include #include #include -#include -#include +#include +#include #include #include @@ -58,23 +58,23 @@ TestRunner::TestRunner(): d = new Private; TQFrame* mainWidget = plainPage(); - TQGridLayout* layout = new TQGridLayout( mainWidget, 3, 4, marginHint(), spacingHint() ); + TQGridLayout* tqlayout = new TQGridLayout( mainWidget, 3, 4, marginHint(), spacingHint() ); setMinimumSize( 360, 230 ); TQLabel* typeLabel = new TQLabel( "Type of Test:", mainWidget ); - layout->addWidget( typeLabel, 0, 0 ); + tqlayout->addWidget( typeLabel, 0, 0 ); d->testType = new KComboBox( mainWidget ); - layout->addWidget( d->testType, 0, 1 ); + tqlayout->addWidget( d->testType, 0, 1 ); - TQSpacerItem* spacerItem = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - layout->addItem( spacerItem, 0, 2 ); + TQSpacerItem* tqspacerItem = new TQSpacerItem( 10, 10, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); + tqlayout->addItem( tqspacerItem, 0, 2 ); d->runButton = new KPushButton( "Run", mainWidget ); - layout->addWidget( d->runButton, 0, 3 ); + tqlayout->addWidget( d->runButton, 0, 3 ); d->logView = new TQTextEdit( mainWidget ); - layout->addMultiCellWidget( d->logView, 2, 2, 0, 3 ); + tqlayout->addMultiCellWidget( d->logView, 2, 2, 0, 3 ); d->logView->setTextFormat( TQt::LogText ); TQObject::connect( d->runButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( runTest() ) ); @@ -108,7 +108,7 @@ void TestRunner::runTest() if( tester ) { d->logView->clear(); - d->logView->append( TQString("Test: %1").arg( testName ) ); + d->logView->append( TQString("Test: %1").tqarg( testName ) ); TQApplication::setOverrideCursor(TQt::waitCursor); tester->run(); @@ -117,13 +117,13 @@ void TestRunner::runTest() TQStringList errorList = tester->errors(); if( tester->failed() ) { - d->logView->append( TQString( "%1 tests, %2 failed.").arg( tester->count() ). + d->logView->append( TQString( "%1 tests, %2 failed.").tqarg( tester->count() ). arg( tester->failed() ) ); for( unsigned k = 0; k < errorList.count(); k++ ) d->logView->append( errorList[k] ); } else - d->logView->append( TQString( "%1 tests, everything is OK. ").arg( tester->count() ) ); + d->logView->append( TQString( "%1 tests, everything is OK. ").tqarg( tester->count() ) ); d->logView->append( "Test finished." ); } -- cgit v1.2.1