summaryrefslogtreecommitdiffstats
path: root/ktnef/gui/ktnefview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /ktnef/gui/ktnefview.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktnef/gui/ktnefview.cpp')
-rw-r--r--ktnef/gui/ktnefview.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/ktnef/gui/ktnefview.cpp b/ktnef/gui/ktnefview.cpp
index abee5a73b..a77098350 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();