diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /ktnef/gui/ktnefview.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktnef/gui/ktnefview.cpp')
-rw-r--r-- | ktnef/gui/ktnefview.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ktnef/gui/ktnefview.cpp b/ktnef/gui/ktnefview.cpp index 79d5f073b..dcf401ab3 100644 --- a/ktnef/gui/ktnefview.cpp +++ b/ktnef/gui/ktnefview.cpp @@ -30,10 +30,10 @@ #include <kmimetype.h> -class Attachment : public QListViewItem +class Attachment : public TQListViewItem { public: - Attachment(TQListView *parent, KTNEFAttach *attach); + Attachment(TQListView *tqparent, KTNEFAttach *attach); ~Attachment(); KTNEFAttach* getAttachment() const { return attach_; } @@ -42,14 +42,14 @@ private: KTNEFAttach *attach_; }; -Attachment::Attachment(TQListView *parent, KTNEFAttach *attach) - : TQListViewItem(parent, attach->name()), attach_(attach) +Attachment::Attachment(TQListView *tqparent, KTNEFAttach *attach) + : TQListViewItem(tqparent, attach->name()), attach_(attach) { 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()); - TQPixmap pix = loadRenderingPixmap( attach, parent->tqcolorGroup().base() ); + TQPixmap pix = loadRenderingPixmap( attach, tqparent->tqcolorGroup().base() ); if ( !pix.isNull() ) setPixmap( 0, pix ); else @@ -63,8 +63,8 @@ Attachment::~Attachment() //------------------------------------------------------------------------------------------------------ -KTNEFView::KTNEFView(TQWidget *parent, const char *name) - : KListView(parent,name) +KTNEFView::KTNEFView(TQWidget *tqparent, const char *name) + : KListView(tqparent,name) { attachments_.setAutoDelete(false); addColumn(i18n("File Name")); @@ -103,7 +103,7 @@ void KTNEFView::resizeEvent(TQResizeEvent *e) TQPtrList<KTNEFAttach>* KTNEFView::getSelection() { attachments_.clear(); - QListViewItem *item = firstChild(); + TQListViewItem *item = firstChild(); while (item) { if (item->isSelected()) attachments_.append(((Attachment*)item)->getAttachment()); |