summaryrefslogtreecommitdiffstats
path: root/kget/transferlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kget/transferlist.cpp')
-rw-r--r--kget/transferlist.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kget/transferlist.cpp b/kget/transferlist.cpp
index 1d9ed902..bf54cb87 100644
--- a/kget/transferlist.cpp
+++ b/kget/transferlist.cpp
@@ -52,11 +52,11 @@ static int defaultColumnWidth[] = {
};
-TransferList::TransferList(QWidget * parent, const char *name)
+TransferList::TransferList(TQWidget * parent, const char *name)
: KListView(parent, name)
{
// enable selection of more than one item
- setSelectionMode( QListView::Extended );
+ setSelectionMode( TQListView::Extended );
// // disable sorting and clicking on headers
// setSorting( -1 );
@@ -86,20 +86,20 @@ TransferList::TransferList(QWidget * parent, const char *name)
else
restoreLayout( KGlobal::config(), "ListView" );
- QString connectPath = "pics/connect%2.png";
- QString tryPath = "pics/try%2.png";
+ TQString connectPath = "pics/connect%2.png";
+ TQString tryPath = "pics/try%2.png";
// Load animations
- QPixmap* curPix;
+ TQPixmap* curPix;
if (animConn.count() == 0) {
animConn.setAutoDelete(true);
animTry.setAutoDelete(true);
for (int i = 0; i < 8; i++) {
- curPix = new QPixmap();
+ curPix = new TQPixmap();
curPix->load(locate("appdata", connectPath.arg(i)));
animConn.append(curPix);
- curPix = new QPixmap();
+ curPix = new TQPixmap();
curPix->load(locate("appdata", tryPath.arg(i)));
animTry.append(curPix);
}
@@ -113,8 +113,8 @@ TransferList::TransferList(QWidget * parent, const char *name)
phasesNum = animConn.count();
- connect(this, SIGNAL(doubleClicked(QListViewItem *)), SLOT(slotTransferSelected(QListViewItem *)));
- connect(this, SIGNAL(rightButtonPressed(QListViewItem *, const QPoint &, int)), SLOT(slotPopupMenu(QListViewItem *)));
+ connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *)), TQT_SLOT(slotTransferSelected(TQListViewItem *)));
+ connect(this, TQT_SIGNAL(rightButtonPressed(TQListViewItem *, const TQPoint &, int)), TQT_SLOT(slotPopupMenu(TQListViewItem *)));
}
@@ -137,13 +137,13 @@ Transfer *TransferList::addTransfer(const KURL & _source, const KURL & _dest,
}
-void TransferList::slotTransferSelected(QListViewItem * item)
+void TransferList::slotTransferSelected(TQListViewItem * item)
{
emit transferSelected((Transfer *) item);
}
-void TransferList::slotPopupMenu(QListViewItem * item)
+void TransferList::slotPopupMenu(TQListViewItem * item)
{
if (!item)
return;
@@ -151,7 +151,7 @@ void TransferList::slotPopupMenu(QListViewItem * item)
}
-void TransferList::setSelected(QListViewItem * item, bool selected)
+void TransferList::setSelected(TQListViewItem * item, bool selected)
{
bool tmpb = selected;
@@ -159,7 +159,7 @@ void TransferList::setSelected(QListViewItem * item, bool selected)
tmpb = false;
}
- QListView::setSelected(item, tmpb);
+ TQListView::setSelected(item, tmpb);
}
@@ -227,9 +227,9 @@ Transfer * TransferList::find(const KURL& _src)
void TransferList::readTransfers(const KURL& file)
{
- QString tmpFile;
+ TQString tmpFile;
- if (KIO::NetAccess::download(file, tmpFile, (QWidget*)parent())) {
+ if (KIO::NetAccess::download(file, tmpFile, (TQWidget*)parent())) {
KSimpleConfig config(tmpFile);
config.setGroup("Common");
@@ -240,7 +240,7 @@ void TransferList::readTransfers(const KURL& file)
for ( int i = 0; i < num; i++ )
{
- QString str;
+ TQString str;
str.sprintf("Item%d", i);
config.setGroup(str);
@@ -261,7 +261,7 @@ void TransferList::readTransfers(const KURL& file)
}
}
-void TransferList::writeTransfers(const QString& file)
+void TransferList::writeTransfers(const TQString& file)
{
sDebug << ">>>>Entering with file =" << file << endl;