summaryrefslogtreecommitdiffstats
path: root/kspread/tests/testrunner.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:56:31 -0600
commitc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch)
tree1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kspread/tests/testrunner.cc
parent94844816550ad672ccfcdc25659c625546239998 (diff)
downloadkoffice-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/testrunner.cc')
-rw-r--r--kspread/tests/testrunner.cc24
1 files changed, 12 insertions, 12 deletions
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." );
}