From f7055674768fa7f0267da4a14b9061e60ebab3fc Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 31 Jan 2013 00:15:51 -0600 Subject: Rename KShared --- kexi/plugins/macros/kexiactions/navigateaction.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kexi/plugins/macros/kexiactions/navigateaction.cpp') diff --git a/kexi/plugins/macros/kexiactions/navigateaction.cpp b/kexi/plugins/macros/kexiactions/navigateaction.cpp index 815b8723..336039ae 100644 --- a/kexi/plugins/macros/kexiactions/navigateaction.cpp +++ b/kexi/plugins/macros/kexiactions/navigateaction.cpp @@ -47,7 +47,7 @@ namespace KexiMacro { { TQStringList list; list << "first" << "previous" << "next" << "last" << "goto"; - this->appendChild( KSharedPtr( new KoMacro::Variable(list, "@list") ) ); + this->appendChild( TDESharedPtr( new KoMacro::Variable(list, "@list") ) ); /*TODO should this actions belong to navigate? maybe it would be more wise to have such kind of functionality in an own e.g. "Modify" action to outline, that @@ -64,25 +64,25 @@ NavigateAction::NavigateAction() : KexiAction("navigate", i18n("Navigate")) { KoMacro::Variable* navvar = new NavigateVariable(this); - setVariable(KSharedPtr( navvar )); + setVariable(TDESharedPtr( navvar )); KoMacro::Variable* rowvar = new KexiVariable(this, "rownr", i18n("Row")); rowvar->setVariant(0); - setVariable(KSharedPtr(rowvar)); + setVariable(TDESharedPtr(rowvar)); KoMacro::Variable* colvar = new KexiVariable(this, "colnr", i18n("Column")); colvar->setVariant(0); - setVariable(KSharedPtr(colvar)); + setVariable(TDESharedPtr(colvar)); } NavigateAction::~NavigateAction() { } -bool NavigateAction::notifyUpdated(KSharedPtr macroitem, const TQString& name) +bool NavigateAction::notifyUpdated(TDESharedPtr macroitem, const TQString& name) { kdDebug()<<"NavigateAction::notifyUpdated() name="< variable = macroitem->variable(name, false); + TDESharedPtr variable = macroitem->variable(name, false); if(! variable) { kdWarning()<<"NavigateAction::notifyUpdated() No such variable="< macroitem, con const int colnr = macroitem->variant("colnr", true).toInt(); // e.g. "macro1" or "macro2" if objectvalue above is "macro" macroitem->variable("rownr", true)->setChildren( - KoMacro::Variable::List() << KSharedPtr(new KoMacro::Variable(rownr)) ); + KoMacro::Variable::List() << TDESharedPtr(new KoMacro::Variable(rownr)) ); macroitem->variable("colnr", true)->setChildren( - KoMacro::Variable::List() << KSharedPtr(new KoMacro::Variable(colnr)) ); + KoMacro::Variable::List() << TDESharedPtr(new KoMacro::Variable(colnr)) ); } return true; } -void NavigateAction::activate(KSharedPtr context) +void NavigateAction::activate(TDESharedPtr context) { KexiDialogBase* dialog = dynamic_cast( mainWin()->activeWindow() ); if(! dialog) { -- cgit v1.2.1