diff options
Diffstat (limited to 'kftpgrabber/src/widgets/queueview/threadview.cpp')
-rw-r--r-- | kftpgrabber/src/widgets/queueview/threadview.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kftpgrabber/src/widgets/queueview/threadview.cpp b/kftpgrabber/src/widgets/queueview/threadview.cpp index fd1c663..9047dfa 100644 --- a/kftpgrabber/src/widgets/queueview/threadview.cpp +++ b/kftpgrabber/src/widgets/queueview/threadview.cpp @@ -38,23 +38,23 @@ #include "listview.h" -#include <qlayout.h> -#include <klocale.h> +#include <ntqlayout.h> +#include <tdelocale.h> namespace KFTPWidgets { -ThreadViewItem::ThreadViewItem(KFTPSession::Session *session, QListView *parent) - : QObject(parent), - QListViewItem(parent), +ThreadViewItem::ThreadViewItem(KFTPSession::Session *session, TQListView *parent) + : TQObject(parent), + TQListViewItem(parent), m_connection(0), m_session(session) { refresh(); } -ThreadViewItem::ThreadViewItem(KFTPSession::Connection *conn, QListViewItem *parent, int id) - : QObject(), - QListViewItem(parent), +ThreadViewItem::ThreadViewItem(KFTPSession::Connection *conn, TQListViewItem *parent, int id) + : TQObject(), + TQListViewItem(parent), m_id(id), m_connection(conn), m_session(0) @@ -97,7 +97,7 @@ void ThreadViewItem::refresh() KFTPQueue::Transfer *transfer = m_connection->getTransfer(); if (transfer && transfer->isRunning()) { - QString speed; + TQString speed; filesize_t rawSpeed = transfer->getSpeed(); speed.sprintf( "%lld KB/s", (rawSpeed / 1024) ); @@ -124,9 +124,9 @@ void ThreadViewItem::refresh() } } -void ThreadViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) +void ThreadViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) { - QListViewItem::paintCell(p, cg, column, width, alignment); + TQListViewItem::paintCell(p, cg, column, width, alignment); } void ThreadViewItem::slotUpdateItemRequested() @@ -134,15 +134,15 @@ void ThreadViewItem::slotUpdateItemRequested() refresh(); } -KActionCollection *ThreadView::actionCollection() +TDEActionCollection *ThreadView::actionCollection() { return KFTPAPI::getInstance()->mainWindow()->actionCollection(); } -ThreadView::ThreadView(QWidget *parent, const char *name) - : QWidget(parent, name) +ThreadView::ThreadView(TQWidget *parent, const char *name) + : TQWidget(parent, name) { - QVBoxLayout *layout = new QVBoxLayout(this); + TQVBoxLayout *layout = new TQVBoxLayout(this); // Create the list view m_threads = new KFTPWidgets::ListView(this); @@ -156,7 +156,7 @@ ThreadView::ThreadView(QWidget *parent, const char *name) m_threads->setEmptyListText(i18n("There are no threads currently running.")); // Multi-select - m_threads->setSelectionModeExt(KListView::FileManager); + m_threads->setSelectionModeExt(TDEListView::FileManager); m_threads->setAllColumnsShowFocus(true); m_threads->setRootIsDecorated(true); @@ -180,7 +180,7 @@ void ThreadView::slotUpdateSessions() if (i->isRemote()) { ThreadViewItem *site = new ThreadViewItem(i, m_threads); - QPtrList<KFTPSession::Connection> *c_list = i->getConnectionList(); + TQPtrList<KFTPSession::Connection> *c_list = i->getConnectionList(); if (c_list->count() > 0) { KFTPSession::Connection *conn; |