summaryrefslogtreecommitdiffstats
path: root/kget/transferlist.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kget/transferlist.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kget/transferlist.cpp')
-rw-r--r--kget/transferlist.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kget/transferlist.cpp b/kget/transferlist.cpp
index bf54cb87..9de03889 100644
--- a/kget/transferlist.cpp
+++ b/kget/transferlist.cpp
@@ -52,8 +52,8 @@ static int defaultColumnWidth[] = {
};
-TransferList::TransferList(TQWidget * parent, const char *name)
- : KListView(parent, name)
+TransferList::TransferList(TQWidget * tqparent, const char *name)
+ : KListView(tqparent, name)
{
// enable selection of more than one item
setSelectionMode( TQListView::Extended );
@@ -75,7 +75,7 @@ TransferList::TransferList(TQWidget * parent, const char *name)
jobid=1;
- // initial layout
+ // initial tqlayout
KConfig *config = KGlobal::config();
config->setGroup("ListView");
if ( config->readListEntry("ColumnWidths").isEmpty() )
@@ -96,11 +96,11 @@ TransferList::TransferList(TQWidget * parent, const char *name)
animTry.setAutoDelete(true);
for (int i = 0; i < 8; i++) {
curPix = new TQPixmap();
- curPix->load(locate("appdata", connectPath.arg(i)));
+ curPix->load(locate("appdata", connectPath.tqarg(i)));
animConn.append(curPix);
curPix = new TQPixmap();
- curPix->load(locate("appdata", tryPath.arg(i)));
+ curPix->load(locate("appdata", tryPath.tqarg(i)));
animTry.append(curPix);
}
}
@@ -182,14 +182,14 @@ void TransferList::moveToEnd(Transfer * item)
}
-bool TransferList::updateStatus(int counter)
+bool TransferList::updatetqStatus(int counter)
{
bool isTransfer = false;
TransferIterator it(this);
for (; it.current(); ++it) {
- isTransfer |= it.current()->updateStatus(counter);
+ isTransfer |= it.current()->updatetqStatus(counter);
}
return isTransfer;
@@ -202,7 +202,7 @@ bool TransferList::areTransfersQueuedOrScheduled()
if (childCount() > 0) {
for (; it.current(); ++it) {
- if ((it.current()->getMode() == Transfer::MD_QUEUED)|| \
+ if ((it.current()->getMode() == Transfer::MD_TQUEUED)|| \
(it.current()->getMode() == Transfer::MD_SCHEDULED))
return true;
}
@@ -211,7 +211,7 @@ bool TransferList::areTransfersQueuedOrScheduled()
}
-Transfer * TransferList::find(const KURL& _src)
+Transfer * TransferList::tqfind(const KURL& _src)
{
TransferIterator it(this);
@@ -229,7 +229,7 @@ void TransferList::readTransfers(const KURL& file)
{
TQString tmpFile;
- if (KIO::NetAccess::download(file, tmpFile, (TQWidget*)parent())) {
+ if (KIO::NetAccess::download(file, tmpFile, (TQWidget*)tqparent())) {
KSimpleConfig config(tmpFile);
config.setGroup("Common");