diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kget/transferlist.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kget/transferlist.cpp')
-rw-r--r-- | kget/transferlist.cpp | 34 |
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; |