summaryrefslogtreecommitdiffstats
path: root/src/kvilib/ext/kvi_parameterlist.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/kvilib/ext/kvi_parameterlist.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/kvilib/ext/kvi_parameterlist.cpp')
-rw-r--r--src/kvilib/ext/kvi_parameterlist.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kvilib/ext/kvi_parameterlist.cpp b/src/kvilib/ext/kvi_parameterlist.cpp
index 318cd3d1..9affcab3 100644
--- a/src/kvilib/ext/kvi_parameterlist.cpp
+++ b/src/kvilib/ext/kvi_parameterlist.cpp
@@ -166,7 +166,7 @@ unsigned int KviParameterList::getUInt(bool * bOk)
return 0;
}
-QRect KviParameterList::getRect(bool * bOk)
+TQRect KviParameterList::getRect(bool * bOk)
{
int val[4];
for(int i=0;i<4;i++)
@@ -176,21 +176,21 @@ QRect KviParameterList::getRect(bool * bOk)
if(!pszv)
{
if(bOk)*bOk = false;
- return QRect(); // invalid
+ return TQRect(); // invalid
}
bool mybOk;
val[i] = pszv->toInt(&mybOk);
if(!mybOk)
{
if(bOk)*bOk = false;
- return QRect(); // invalid
+ return TQRect(); // invalid
}
}
if(bOk)*bOk = true;
- return QRect(val[0],val[1],val[2],val[3]);
+ return TQRect(val[0],val[1],val[2],val[3]);
}
-QPoint KviParameterList::getPoint(bool * bOk)
+TQPoint KviParameterList::getPoint(bool * bOk)
{
int val[2];
for(int i=0;i<2;i++)
@@ -200,21 +200,21 @@ QPoint KviParameterList::getPoint(bool * bOk)
if(!pszv)
{
if(bOk)*bOk = false;
- return QPoint(); // invalid
+ return TQPoint(); // invalid
}
bool mybOk;
val[i] = pszv->toInt(&mybOk);
if(!mybOk)
{
if(bOk)*bOk = false;
- return QPoint(); // invalid
+ return TQPoint(); // invalid
}
}
if(bOk)*bOk = true;
- return QPoint(val[0],val[1]);
+ return TQPoint(val[0],val[1]);
}
-QSize KviParameterList::getSize(bool * bOk)
+TQSize KviParameterList::getSize(bool * bOk)
{
int val[2];
for(int i=0;i<2;i++)
@@ -224,18 +224,18 @@ QSize KviParameterList::getSize(bool * bOk)
if(!pszv)
{
if(bOk)*bOk = false;
- return QSize(); // invalid
+ return TQSize(); // invalid
}
bool mybOk;
val[i] = pszv->toInt(&mybOk);
if(!mybOk)
{
if(bOk)*bOk = false;
- return QSize(); // invalid
+ return TQSize(); // invalid
}
}
if(bOk)*bOk = true;
- return QSize(val[0],val[1]);
+ return TQSize(val[0],val[1]);
}
//#ifdef COMPILE_ON_WINDOWS