diff options
Diffstat (limited to 'kexi/plugins/macros/lib/macro.cpp')
-rw-r--r-- | kexi/plugins/macros/lib/macro.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kexi/plugins/macros/lib/macro.cpp b/kexi/plugins/macros/lib/macro.cpp index 688cc7b0..6bcdc21d 100644 --- a/kexi/plugins/macros/lib/macro.cpp +++ b/kexi/plugins/macros/lib/macro.cpp @@ -23,7 +23,7 @@ #include "context.h" #include "variable.h" -#include <qdom.h> +#include <tqdom.h> #include <kdebug.h> using namespace KoMacro; @@ -41,20 +41,20 @@ namespace KoMacro { /** * A list of @a MacroItem instances. */ - QValueList<KSharedPtr<MacroItem > > itemlist; + TQValueList<KSharedPtr<MacroItem > > itemlist; /** * The name the @a Macro has. */ - QString name; + TQString name; }; } //constructor, initalize internal (d-pointer) name -Macro::Macro(const QString& name) - : QObject() +Macro::Macro(const TQString& name) + : TQObject() , KShared() , XMLHandler(this) , d( new Private() ) // create the private d-pointer instance. @@ -70,25 +70,25 @@ Macro::~Macro() } //get internal (d-pointer) name -const QString Macro::name() const +const TQString Macro::name() const { return d->name; } //set internal (d-pointer) name -void Macro::setName(const QString& name) +void Macro::setName(const TQString& name) { d->name = name; } //get an "extended" name -const QString Macro::toString() const +const TQString Macro::toString() const { - return QString("Macro:%1").arg(name()); + return TQString("Macro:%1").tqarg(name()); } //get (d-pointer) itemlist -QValueList<KSharedPtr<MacroItem > >& Macro::items() const +TQValueList<KSharedPtr<MacroItem > >& Macro::items() const { return d->itemlist; } @@ -105,17 +105,17 @@ void Macro::clearItems() } //run our macro -KSharedPtr<Context> Macro::execute(QObject* sender) +KSharedPtr<Context> Macro::execute(TQObject* sender) { kdDebug() << "Macro::execute(KSharedPtr<Context>)" << endl; //create context in which macro can/should run KSharedPtr<Context> c = KSharedPtr<Context>( new Context(this) ); if(sender) { - // set the sender-variable if we got a sender QObject. + // set the sender-variable if we got a sender TQObject. c->setVariable("[sender]", KSharedPtr<Variable>( new Variable(sender) )); } - //connect(context, SIGNAL(activated()), this, SIGNAL(activated())); + //connect(context, TQT_SIGNAL(activated()), this, TQT_SIGNAL(activated())); //call activate in the context of the macro c->activate( c ); |