diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/formeditor/scripting/formscript.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/formeditor/scripting/formscript.h')
-rw-r--r-- | kexi/formeditor/scripting/formscript.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/kexi/formeditor/scripting/formscript.h b/kexi/formeditor/scripting/formscript.h index e3d63d74f..4247ca85a 100644 --- a/kexi/formeditor/scripting/formscript.h +++ b/kexi/formeditor/scripting/formscript.h @@ -22,8 +22,8 @@ #include "kexievents.h" -#include <qobject.h> -#include <qstring.h> +#include <tqobject.h> +#include <tqstring.h> #include <ksharedptr.h> class ScriptManager; @@ -41,9 +41,10 @@ namespace Kross { using namespace KFormDesigner; //! A class that stores the code and events related to a single form -class FormScript : public QObject +class FormScript : public TQObject { Q_OBJECT + TQ_OBJECT public: FormScript(Form *form, ScriptManager *manager, const char *name=0); @@ -53,16 +54,16 @@ class FormScript : public QObject Kross::Api::ScriptContainer* scriptContainer() { return m_script; } /*! \return The code of funtionName. If parameter is empty, it returns the full code of this form.*/ - QString getCode(const QString &functionName=QString::null); + TQString getCode(const TQString &functionName=TQString()); /*! Replaces the actual form code with the string \a code. Called eg by (future) script editor. */ - void setCode(const QString &code); + void setCode(const TQString &code); /*! Adds the string \a code at the end of current code. Used to add a function in the script. */ - void appendCode(const QString &code); + void appendCode(const TQString &code); /*! Executes the \a functionName. \todo how do we give parameters? */ - bool execute(const QString &functionName); + bool execute(const TQString &functionName); /*! Really connects all events in the list. Also calls Kross;;Api::Manager::addObject for each widget in the form to allow the user to use these widgets in the script. */ |