diff options
Diffstat (limited to 'ktnef/gui/ktnefview.cpp')
-rw-r--r-- | ktnef/gui/ktnefview.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/ktnef/gui/ktnefview.cpp b/ktnef/gui/ktnefview.cpp index abee5a73..a7709835 100644 --- a/ktnef/gui/ktnefview.cpp +++ b/ktnef/gui/ktnefview.cpp @@ -19,9 +19,9 @@ #include <ktnef/ktnefattach.h> #include "attachpropertydialog.h" -#include <qheader.h> -#include <qpixmap.h> -#include <qtimer.h> +#include <tqheader.h> +#include <tqpixmap.h> +#include <tqtimer.h> #include <kapplication.h> #include <kiconloader.h> @@ -33,7 +33,7 @@ class Attachment : public QListViewItem { public: - Attachment(QListView *parent, KTNEFAttach *attach); + Attachment(TQListView *parent, KTNEFAttach *attach); ~Attachment(); KTNEFAttach* getAttachment() const { return attach_; } @@ -42,14 +42,14 @@ private: KTNEFAttach *attach_; }; -Attachment::Attachment(QListView *parent, KTNEFAttach *attach) - : QListViewItem(parent, attach->name()), attach_(attach) +Attachment::Attachment(TQListView *parent, KTNEFAttach *attach) + : TQListViewItem(parent, attach->name()), attach_(attach) { - setText(2, QString::number( attach_->size() )); + setText(2, TQString::number( attach_->size() )); if (!attach_->fileName().isEmpty()) setText(0, attach_->fileName()); KMimeType::Ptr mimeType = KMimeType::mimeType( attach_->mimeTag() ); setText(1, mimeType->comment()); - QPixmap pix = loadRenderingPixmap( attach, parent->colorGroup().base() ); + TQPixmap pix = loadRenderingPixmap( attach, parent->colorGroup().base() ); if ( !pix.isNull() ) setPixmap( 0, pix ); else @@ -63,44 +63,44 @@ Attachment::~Attachment() //------------------------------------------------------------------------------------------------------ -KTNEFView::KTNEFView(QWidget *parent, const char *name) +KTNEFView::KTNEFView(TQWidget *parent, const char *name) : KListView(parent,name) { attachments_.setAutoDelete(false); addColumn(i18n("File Name")); addColumn(i18n("File Type")); addColumn(i18n("Size")); - setFrameStyle(QFrame::WinPanel|QFrame::Sunken); + setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken); setLineWidth(1); - setSelectionMode(QListView::Extended); - setHScrollBarMode(QScrollView::AlwaysOff); - setVScrollBarMode(QScrollView::AlwaysOn); - QTimer::singleShot( 0, this, SLOT(adjustColumnWidth()) ); + setSelectionMode(TQListView::Extended); + setHScrollBarMode(TQScrollView::AlwaysOff); + setVScrollBarMode(TQScrollView::AlwaysOn); + TQTimer::singleShot( 0, this, TQT_SLOT(adjustColumnWidth()) ); } KTNEFView::~KTNEFView() { } -void KTNEFView::setAttachments(QPtrList<KTNEFAttach> *list) +void KTNEFView::setAttachments(TQPtrList<KTNEFAttach> *list) { clear(); if (list) { - QPtrListIterator<KTNEFAttach> it(*list); + TQPtrListIterator<KTNEFAttach> it(*list); for (;it.current();++it) new Attachment(this, it.current()); } } -void KTNEFView::resizeEvent(QResizeEvent *e) +void KTNEFView::resizeEvent(TQResizeEvent *e) { adjustColumnWidth(); resizeContents(visibleWidth(),visibleHeight()); - if (e) QListView::resizeEvent(e); + if (e) TQListView::resizeEvent(e); } -QPtrList<KTNEFAttach>* KTNEFView::getSelection() +TQPtrList<KTNEFAttach>* KTNEFView::getSelection() { attachments_.clear(); QListViewItem *item = firstChild(); @@ -114,8 +114,8 @@ QPtrList<KTNEFAttach>* KTNEFView::getSelection() void KTNEFView::startDrag() { - QListViewItemIterator it( this, QListViewItemIterator::Selected ); - QValueList<KTNEFAttach*> list; + TQListViewItemIterator it( this, TQListViewItemIterator::Selected ); + TQValueList<KTNEFAttach*> list; while ( it.current() ) { list << static_cast<Attachment*>( it.current() )->getAttachment(); |