From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmail/attachmentlistview.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'kmail/attachmentlistview.cpp') diff --git a/kmail/attachmentlistview.cpp b/kmail/attachmentlistview.cpp index b7c8bdd2..11c53f12 100644 --- a/kmail/attachmentlistview.cpp +++ b/kmail/attachmentlistview.cpp @@ -34,12 +34,12 @@ using KPIM::MailListDrag; #include // other Qt headers -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include // other headers (none) @@ -47,7 +47,7 @@ using KPIM::MailListDrag; namespace KMail { AttachmentListView::AttachmentListView( KMail::Composer * composer, - QWidget* parent, + TQWidget* parent, const char* name ) : KListView( parent, name ), mComposer( composer ) @@ -64,7 +64,7 @@ AttachmentListView::~AttachmentListView() //----------------------------------------------------------------------------- -void AttachmentListView::contentsDragEnterEvent( QDragEnterEvent* e ) +void AttachmentListView::contentsDragEnterEvent( TQDragEnterEvent* e ) { if( e->provides( MailListDrag::format() ) || KURLDrag::canDecode( e ) ) e->accept( true ); @@ -74,7 +74,7 @@ void AttachmentListView::contentsDragEnterEvent( QDragEnterEvent* e ) //----------------------------------------------------------------------------- -void AttachmentListView::contentsDragMoveEvent( QDragMoveEvent* e ) +void AttachmentListView::contentsDragMoveEvent( TQDragMoveEvent* e ) { if( e->provides( MailListDrag::format() ) || KURLDrag::canDecode( e ) ) e->accept( true ); @@ -84,19 +84,19 @@ void AttachmentListView::contentsDragMoveEvent( QDragMoveEvent* e ) //----------------------------------------------------------------------------- -void AttachmentListView::contentsDropEvent( QDropEvent* e ) +void AttachmentListView::contentsDropEvent( TQDropEvent* e ) { if( e->provides( MailListDrag::format() ) ) { // Decode the list of serial numbers stored as the drag data - QByteArray serNums; + TQByteArray serNums; MailListDrag::decode( e, serNums ); - QBuffer serNumBuffer( serNums ); + TQBuffer serNumBuffer( serNums ); serNumBuffer.open( IO_ReadOnly ); - QDataStream serNumStream( &serNumBuffer ); + TQDataStream serNumStream( &serNumBuffer ); Q_UINT32 serNum; KMFolder *folder = 0; int idx; - QPtrList messageList; + TQPtrList messageList; while( !serNumStream.atEnd() ) { KMMsgBase *msgBase = 0; serNumStream >> serNum; @@ -128,7 +128,7 @@ void AttachmentListView::contentsDropEvent( QDropEvent* e ) //----------------------------------------------------------------------------- -void AttachmentListView::keyPressEvent( QKeyEvent * e ) +void AttachmentListView::keyPressEvent( TQKeyEvent * e ) { if ( e->key() == Key_Delete ) { emit attachmentDeleted(); -- cgit v1.2.3