diff options
Diffstat (limited to 'kexi/plugins/macros/kexipart/keximacropart.cpp')
-rw-r--r-- | kexi/plugins/macros/kexipart/keximacropart.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kexi/plugins/macros/kexipart/keximacropart.cpp b/kexi/plugins/macros/kexipart/keximacropart.cpp index c4f020e4..1fddbd78 100644 --- a/kexi/plugins/macros/kexipart/keximacropart.cpp +++ b/kexi/plugins/macros/kexipart/keximacropart.cpp @@ -25,8 +25,8 @@ //#include "keximainwindow.h" //#include "kexiproject.h" -#include <qdom.h> -#include <qstringlist.h> +#include <tqdom.h> +#include <tqstringlist.h> #include <kgenericfactory.h> #include <kexipartitem.h> //#include <kxmlguiclient.h> @@ -54,8 +54,8 @@ class KexiMacroPart::Private public: }; -KexiMacroPart::KexiMacroPart(QObject *parent, const char *name, const QStringList &l) - : KexiPart::Part(parent, name, l) +KexiMacroPart::KexiMacroPart(TQObject *tqparent, const char *name, const TQStringList &l) + : KexiPart::Part(tqparent, name, l) , d( new Private() ) { //kdDebug() << "KexiMacroPart::KexiMacroPart() Ctor" << endl; @@ -83,7 +83,7 @@ KexiMacroPart::~KexiMacroPart() delete d; } -bool KexiMacroPart::execute(KexiPart::Item* item, QObject* sender) +bool KexiMacroPart::execute(KexiPart::Item* item, TQObject* sender) { KexiDialogBase* dialog = new KexiDialogBase(m_mainWin); dialog->setId( item->identifier() ); @@ -123,9 +123,9 @@ void KexiMacroPart::initInstanceActions() //createSharedAction(Kexi::DesignViewMode, i18n("Execute Macro"), "exec", 0, "data_execute"); } -KexiViewBase* KexiMacroPart::createView(QWidget* parent, KexiDialogBase* dialog, KexiPart::Item& item, int viewMode, QMap<QString,QString>*) +KexiViewBase* KexiMacroPart::createView(TQWidget* tqparent, KexiDialogBase* dialog, KexiPart::Item& item, int viewMode, TQMap<TQString,TQString>*) { - const QString itemname = item.name(); + const TQString itemname = item.name(); //kdDebug() << "KexiMacroPart::createView() itemname=" << itemname << endl; if(! itemname.isNull()) { @@ -140,14 +140,14 @@ KexiViewBase* KexiMacroPart::createView(QWidget* parent, KexiDialogBase* dialog, KexiMainWindow *win = dialog->mainWin(); if(win && win->project() && win->project()->dbConnection()) { if(viewMode == Kexi::DesignViewMode) { - return new KexiMacroDesignView(win, parent, macro); + return new KexiMacroDesignView(win, tqparent, macro); } if(viewMode == Kexi::TextViewMode) { - return new KexiMacroTextView(win, parent, macro); + return new KexiMacroTextView(win, tqparent, macro); } if(viewMode == Kexi::DataViewMode) { // Called if the macro should be executed. - return new KexiMacroView(win, parent, macro); + return new KexiMacroView(win, tqparent, macro); } } } @@ -156,7 +156,7 @@ KexiViewBase* KexiMacroPart::createView(QWidget* parent, KexiDialogBase* dialog, return 0; } -QString KexiMacroPart::i18nMessage(const QCString& englishMessage) const +TQString KexiMacroPart::i18nMessage(const TQCString& englishMessage) const { if(englishMessage=="Design of object \"%1\" has been modified.") { return i18n("Design of macro \"%1\" has been modified."); |