From 0a80cfd57d271dd44221467efb426675fa470356 Mon Sep 17 00:00:00 2001
From: tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Date: Tue, 28 Jun 2011 18:31:12 +0000
Subject: 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
---
 src/modules/objects/class_radiobutton.cpp | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

(limited to 'src/modules/objects/class_radiobutton.cpp')

diff --git a/src/modules/objects/class_radiobutton.cpp b/src/modules/objects/class_radiobutton.cpp
index 08211e12..75a20f52 100644
--- a/src/modules/objects/class_radiobutton.cpp
+++ b/src/modules/objects/class_radiobutton.cpp
@@ -82,23 +82,23 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_radiobutton)
 
 bool KviKvsObject_radiobutton::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
 {
-	setObject(new QRadioButton(parentScriptWidget(),name()),true);
-	connect(widget(),SIGNAL(toggled(bool)),this,SLOT(toggled(bool)));
+	setObject(TQT_TQOBJECT(new TQRadioButton(tqparentScriptWidget(),name())),true);
+	connect(widget(),TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(toggled(bool)));
 	return true;
 }
 bool KviKvsObject_radiobutton::functionSetText(KviKvsObjectFunctionCall *c)
 {
-	QString szText;
+	TQString szText;
 	KVSO_PARAMETERS_BEGIN(c)
 		KVSO_PARAMETER("text",KVS_PT_STRING,0,szText)
 	KVSO_PARAMETERS_END(c)
 	if (widget())
-		((QRadioButton *)widget())->setText(szText);
+		((TQRadioButton *)widget())->setText(szText);
 	return true;
 }
 bool KviKvsObject_radiobutton::functionIsChecked(KviKvsObjectFunctionCall *c)
 {
-	if(widget()) c->returnValue()->setBoolean(((QRadioButton *)widget())->isChecked());
+	if(widget()) c->returnValue()->setBoolean(((TQRadioButton *)widget())->isChecked());
 	return true;
 }
 
@@ -108,17 +108,17 @@ bool KviKvsObject_radiobutton::functionSetChecked(KviKvsObjectFunctionCall *c)
 	KVSO_PARAMETERS_BEGIN(c)
 		KVSO_PARAMETER("bChecked",KVS_PT_BOOL,0,bChecked)
 	KVSO_PARAMETERS_END(c)
-	if(widget()) ((QRadioButton *)widget())->setChecked(bChecked);
+	if(widget()) ((TQRadioButton *)widget())->setChecked(bChecked);
 	return true;
 }
 bool KviKvsObject_radiobutton::functionSetImage(KviKvsObjectFunctionCall *c)
 {
-	QString icon;
+	TQString icon;
 	KVSO_PARAMETERS_BEGIN(c)
 		KVSO_PARAMETER("icon_id",KVS_PT_STRING,0,icon)
 	KVSO_PARAMETERS_END(c)
 	if (!widget()) return true;
-	QPixmap * pix = g_pIconManager->getImage(icon);
+	TQPixmap * pix = g_pIconManager->getImage(icon);
 	if(pix)widget()->setIcon(*pix);
 	return true;
 }
-- 
cgit v1.2.1