diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:56:31 -0600 |
commit | c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch) | |
tree | 1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kspread/tests | |
parent | 94844816550ad672ccfcdc25659c625546239998 (diff) | |
download | koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kspread/tests')
-rw-r--r-- | kspread/tests/inspector.cc | 6 | ||||
-rw-r--r-- | kspread/tests/tester.cc | 2 | ||||
-rw-r--r-- | kspread/tests/testrunner.cc | 24 |
3 files changed, 16 insertions, 16 deletions
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 <layout.h> +#include <tqlayout.h> #include <tqlistview.h> -#include <textstream.h> +#include <tqtextstream.h> #include <kdialogbase.h> @@ -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 <tqstringlist.h> -#include <textstream.h> +#include <tqtextstream.h> 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 <tqapplication.h> #include <tqdict.h> #include <tqlabel.h> -#include <layout.h> -#include <textedit.h> +#include <tqlayout.h> +#include <tqtextedit.h> #include <kcombobox.h> #include <kdialogbase.h> @@ -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, <b>%2 failed.</b>").arg( tester->count() ). + d->logView->append( TQString( "%1 tests, <b>%2 failed.</b>").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." ); } |