diff options
Diffstat (limited to 'kexi/plugins/macros/tests/macroitemtests.cpp')
-rw-r--r-- | kexi/plugins/macros/tests/macroitemtests.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kexi/plugins/macros/tests/macroitemtests.cpp b/kexi/plugins/macros/tests/macroitemtests.cpp index 0ac780b0..044808d7 100644 --- a/kexi/plugins/macros/tests/macroitemtests.cpp +++ b/kexi/plugins/macros/tests/macroitemtests.cpp @@ -71,7 +71,7 @@ namespace KoMacroTest { TQDomDocument* doomdocument; - KSharedPtr<KoMacro::Macro> macro; + TDESharedPtr<KoMacro::Macro> macro; Private() : xmlguiclient(0) @@ -83,7 +83,7 @@ namespace KoMacroTest { }; } -typedef TQValueList< KSharedPtr<KoMacro::MacroItem> >::size_type sizetype; +typedef TQValueList< TDESharedPtr<KoMacro::MacroItem> >::size_type sizetype; MacroitemTests::MacroitemTests() : KUnitTest::SlotTester() @@ -136,7 +136,7 @@ void MacroitemTests::testMacro() kdDebug()<<"===================== testMacro() ======================" << endl; //fetch Items and .. - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); //... check that there is one KOMACROTEST_XASSERT( items.count(), sizetype(0) ); @@ -148,9 +148,9 @@ void MacroitemTests::testMacroItemString() kdDebug()<<"===================== testMacroItemString() ======================" << endl; - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); - KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); - KSharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTSTRING); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TDESharedPtr<KoMacro::Action> actionptr = items[0]->action(); + TDESharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTSTRING); //create new macroitem for testing KoMacro::MacroItem* macroitem = new KoMacro::MacroItem(); @@ -185,8 +185,8 @@ void MacroitemTests::testMacroItemInt() kdDebug()<<"===================== testMacroItemInt() ======================" << endl; - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); - KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TDESharedPtr<KoMacro::Action> actionptr = items[0]->action(); //create new macroitem for testing KoMacro::MacroItem* macroitem = new KoMacro::MacroItem(); @@ -195,7 +195,7 @@ void MacroitemTests::testMacroItemInt() items.append(macroitem); macroitem->setVariable(TESTINT,INT_MIN); - KSharedPtr<KoMacro::Variable> variableptr = macroitem->variable(TESTINT); + TDESharedPtr<KoMacro::Variable> variableptr = macroitem->variable(TESTINT); KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); KOMACROTEST_ASSERT(sizetype(variableptr->variant().toInt()),sizetype(INT_MIN)); @@ -226,8 +226,8 @@ void MacroitemTests::testMacroItemBool() kdDebug()<<"===================== testMacroItemBool() ======================" << endl; - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); - KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TDESharedPtr<KoMacro::Action> actionptr = items[0]->action(); //create new macroitem for testing KoMacro::MacroItem* macroitem = new KoMacro::MacroItem(); @@ -236,7 +236,7 @@ void MacroitemTests::testMacroItemBool() items.append(macroitem); macroitem->setVariable(TESTBOOL,"false"); - KSharedPtr<KoMacro::Variable> variableptr = macroitem->variable(TESTBOOL); + TDESharedPtr<KoMacro::Variable> variableptr = macroitem->variable(TESTBOOL); KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); KOMACROTEST_ASSERT(variableptr->variant().toBool(),false); } |