diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /ktnef/lib/ktnefmessage.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/lib/ktnefmessage.cpp')
-rw-r--r-- | ktnef/lib/ktnefmessage.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ktnef/lib/ktnefmessage.cpp b/ktnef/lib/ktnefmessage.cpp index d94efb6c4..8f2648c3a 100644 --- a/ktnef/lib/ktnefmessage.cpp +++ b/ktnef/lib/ktnefmessage.cpp @@ -19,7 +19,7 @@ #include "ktnef/ktnefattach.h" #include "lzfu.h" -#include <qbuffer.h> +#include <tqbuffer.h> class KTNEFMessage::MessagePrivate { @@ -29,7 +29,7 @@ public: attachments_.setAutoDelete( true ); } - QPtrList<KTNEFAttach> attachments_; + TQPtrList<KTNEFAttach> attachments_; }; KTNEFMessage::KTNEFMessage() @@ -42,14 +42,14 @@ KTNEFMessage::~KTNEFMessage() delete d; } -const QPtrList<KTNEFAttach>& KTNEFMessage::attachmentList() const +const TQPtrList<KTNEFAttach>& KTNEFMessage::attachmentList() const { return d->attachments_; } -KTNEFAttach* KTNEFMessage::attachment( const QString& filename ) const +KTNEFAttach* KTNEFMessage::attachment( const TQString& filename ) const { - QPtrListIterator<KTNEFAttach> it( d->attachments_ ); + TQPtrListIterator<KTNEFAttach> it( d->attachments_ ); for ( ; it.current(); ++it ) if ( it.current()->name() == filename ) return it.current(); @@ -66,17 +66,17 @@ void KTNEFMessage::clearAttachments() d->attachments_.clear(); } -QString KTNEFMessage::rtfString() +TQString KTNEFMessage::rtfString() { - QVariant prop = property( 0x1009 ); - if ( prop.isNull() || prop.type() != QVariant::ByteArray) - return QString::null; + TQVariant prop = property( 0x1009 ); + if ( prop.isNull() || prop.type() != TQVariant::ByteArray) + return TQString::null; else { - QByteArray rtf; - QBuffer input( prop.asByteArray() ), output( rtf ); + TQByteArray rtf; + TQBuffer input( prop.asByteArray() ), output( rtf ); if ( input.open( IO_ReadOnly ) && output.open( IO_WriteOnly ) ) lzfu_decompress( &input, &output ); - return QString( rtf ); + return TQString( rtf ); } } |