summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_tbrowser.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/objects/class_tbrowser.cpp
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);