summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_tbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_tbrowser.cpp')
-rw-r--r--src/modules/objects/class_tbrowser.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/modules/objects/class_tbrowser.cpp b/src/modules/objects/class_tbrowser.cpp
index 67dce8cb..872a9c86 100644
--- a/src/modules/objects/class_tbrowser.cpp
+++ b/src/modules/objects/class_tbrowser.cpp
@@ -21,7 +21,7 @@
// Inc. ,51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
-#include <qtextbrowser.h>
+#include <tqtextbrowser.h>
#include "class_tbrowser.h"
#include "kvi_error.h"
#include "kvi_debug.h"
@@ -82,53 +82,53 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_textbrowser)
bool KviKvsObject_textbrowser::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- QTextBrowser * tb = new QTextBrowser(parentScriptWidget(), name());
- setObject(tb, true);
- connect(tb,SIGNAL(anchorClicked(const QString &,const QString &)),this,SLOT(anchorClicked(const QString &,const QString &)));
+ TQTextBrowser * tb = new TQTextBrowser(tqparentScriptWidget(), name());
+ setObject(TQT_TQOBJECT(tb), true);
+ connect(tb,TQT_SIGNAL(anchorClicked(const TQString &,const TQString &)),this,TQT_SLOT(anchorClicked(const TQString &,const TQString &)));
return true;
}
bool KviKvsObject_textbrowser::function_setSource(KviKvsObjectFunctionCall *c)
{
- QString szFile;
+ TQString szFile;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("file_name",KVS_PT_STRING,0,szFile)
KVSO_PARAMETERS_END(c)
- if(!QFile::exists(szFile))
+ if(!TQFile::exists(szFile))
{
c->warning(__tr2qs("I can't find the specified file '%Q'."),&szFile);
return true;
}
- if (widget()) ((QTextBrowser *)widget())->setSource(szFile);
+ if (widget()) ((TQTextBrowser *)widget())->setSource(szFile);
return true;
}
bool KviKvsObject_textbrowser::function_forward(KviKvsObjectFunctionCall *c)
{
- if (widget()) ((QTextBrowser *)widget())->forward();
+ if (widget()) ((TQTextBrowser *)widget())->forward();
return true;
}
bool KviKvsObject_textbrowser::function_backward(KviKvsObjectFunctionCall *c)
{
- if (widget()) ((QTextBrowser *)widget())->backward();
+ if (widget()) ((TQTextBrowser *)widget())->backward();
return true;
}
bool KviKvsObject_textbrowser::function_home(KviKvsObjectFunctionCall *c)
{
- if (widget()) ((QTextBrowser *)widget())->home();
+ if (widget()) ((TQTextBrowser *)widget())->home();
return true;
}
bool KviKvsObject_textbrowser::function_reload(KviKvsObjectFunctionCall *c)
{
- if (widget()) ((QTextBrowser *)widget())->reload();
+ if (widget()) ((TQTextBrowser *)widget())->reload();
return true;
}
-void KviKvsObject_textbrowser::anchorClicked(const QString &szName,const QString &szLink)
+void KviKvsObject_textbrowser::anchorClicked(const TQString &szName,const TQString &szLink)
{
KviKvsVariantList parms(new KviKvsVariant(szLink));
callFunction(this,"linkClickedEvent",0,&parms);