summaryrefslogtreecommitdiffstats
path: root/kspread/plugins/scripting/scripting.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/plugins/scripting/scripting.cc')
-rw-r--r--kspread/plugins/scripting/scripting.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/kspread/plugins/scripting/scripting.cc b/kspread/plugins/scripting/scripting.cc
index 96cd1baf..e4299e26 100644
--- a/kspread/plugins/scripting/scripting.cc
+++ b/kspread/plugins/scripting/scripting.cc
@@ -20,7 +20,7 @@
*/
#include "scripting.h"
-#include <qapplication.h>
+#include <tqapplication.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -37,37 +37,37 @@
typedef KGenericFactory<Scripting> KSpreadScriptingFactory;
K_EXPORT_COMPONENT_FACTORY( kspreadscripting, KSpreadScriptingFactory( "kspreadscripting" ) )
-Scripting::Scripting(QObject *parent, const char *name, const QStringList &)
- : KParts::Plugin(parent, name)
+Scripting::Scripting(TQObject *tqparent, const char *name, const TQStringList &)
+ : KParts::Plugin(tqparent, name)
{
setInstance(KSpreadScriptingFactory::instance());
kdDebug() << "Scripting plugin. Class: "
- << metaObject()->className()
+ << tqmetaObject()->className()
<< ", Parent: "
- << parent->metaObject()->className()
+ << tqparent->tqmetaObject()->className()
<< "\n";
- if ( parent->inherits("KSpread::View") )
+ if ( tqparent->inherits("KSpread::View") )
{
setInstance(Scripting::instance());
- m_view = (KSpread::View*) parent;
+ m_view = (KSpread::View*) tqparent;
m_scriptguiclient = new Kross::Api::ScriptGUIClient( m_view, m_view );
// m_scriptguiclient ->setXMLFile(locate("data","kspreadplugins/scripting.rc"), true);
kdDebug() << "Setup actions for scripting !" << endl;
setXMLFile(locate("data","kspread/kpartplugins/scripting.rc"), true);
- new KAction(i18n("Execute Script File..."), 0, 0, m_scriptguiclient, SLOT(executeScriptFile()), actionCollection(), "executescriptfile");
- new KAction(i18n("Script Manager..."), 0, 0, m_scriptguiclient, SLOT(showScriptManager()), actionCollection(), "configurescripts");
+ new KAction(i18n("Execute Script File..."), 0, 0, m_scriptguiclient, TQT_SLOT(executeScriptFile()), actionCollection(), "executescriptfile");
+ new KAction(i18n("Script Manager..."), 0, 0, m_scriptguiclient, TQT_SLOT(showScriptManager()), actionCollection(), "configurescripts");
KAction* scriptmenuaction = m_scriptguiclient->action("installedscripts");
actionCollection()->insert(scriptmenuaction);
- connect(m_scriptguiclient, SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), this, SLOT(executionFinished(const Kross::Api::ScriptAction*)));
+ connect(m_scriptguiclient, TQT_SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), this, TQT_SLOT(executionFinished(const Kross::Api::ScriptAction*)));
- Kross::Api::Manager::scriptManager()->addQObject(m_view->doc(), "KSpreadDocument");
- Kross::Api::Manager::scriptManager()->addQObject(m_view, "KSpreadView");
+ Kross::Api::Manager::scriptManager()->addTQObject(m_view->doc(), "KSpreadDocument");
+ Kross::Api::Manager::scriptManager()->addTQObject(TQT_TQOBJECT(m_view), "KSpreadView");
}
}
@@ -78,7 +78,7 @@ Scripting::~Scripting()
void Scripting::executionFinished(const Kross::Api::ScriptAction*)
{
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
#include "scripting.moc"