From d6331f1b56eb6dca7a1950658b2932f208015da0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:50:38 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kunittest/runnergui.cpp | 16 ++++++++-------- kunittest/testerwidget.ui | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'kunittest') diff --git a/kunittest/runnergui.cpp b/kunittest/runnergui.cpp index 4644d0e5..c2d770f1 100644 --- a/kunittest/runnergui.cpp +++ b/kunittest/runnergui.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include @@ -162,13 +162,13 @@ namespace KUnitTest if ( Runner::self()->numberOfTests() > 0 ) m_testerWidget->resultsLabel()->setText( TQString("Test cases: %1 | Tests performed: %5, Skipped: %4 | Passed: %2, Failed: %3") - .tqarg(Runner::self()->numberOfTestCases()) - .tqarg(Runner::self()->numberOfPassedTests()) - .tqarg(Runner::self()->numberOfFailedTests()) - .tqarg(Runner::self()->numberOfSkippedTests()) - .tqarg(Runner::self()->numberOfTests()) ); + .arg(Runner::self()->numberOfTestCases()) + .arg(Runner::self()->numberOfPassedTests()) + .arg(Runner::self()->numberOfFailedTests()) + .arg(Runner::self()->numberOfSkippedTests()) + .arg(Runner::self()->numberOfTests()) ); else - m_testerWidget->resultsLabel()->setText(TQString("Test cases: %1").tqarg(Runner::self()->numberOfTestCases())); + m_testerWidget->resultsLabel()->setText(TQString("Test cases: %1").arg(Runner::self()->numberOfTestCases())); } void RunnerGUI::addTestResult(const char *name, Tester *test) @@ -211,7 +211,7 @@ namespace KUnitTest if ( test->inherits("KUnitTest::SlotTester") ) { - TQStrList allSlots = test->tqmetaObject()->slotNames(); + TQStrList allSlots = test->metaObject()->slotNames(); for ( char *sl = allSlots.first(); sl; sl = allSlots.next() ) { if ( TQString(sl).startsWith("test") ) diff --git a/kunittest/testerwidget.ui b/kunittest/testerwidget.ui index 1f294c02..e6e92e1c 100644 --- a/kunittest/testerwidget.ui +++ b/kunittest/testerwidget.ui @@ -156,7 +156,7 @@ 0 - + 0 200 @@ -167,7 +167,7 @@ m_teDetails - + 600 200 -- cgit v1.2.1