summaryrefslogtreecommitdiffstats
path: root/kmail/identitydrag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/identitydrag.cpp')
-rw-r--r--kmail/identitydrag.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmail/identitydrag.cpp b/kmail/identitydrag.cpp
index 5116dd445..e8ba4a07e 100644
--- a/kmail/identitydrag.cpp
+++ b/kmail/identitydrag.cpp
@@ -41,8 +41,8 @@ namespace KMail {
static const char kmailIdentityMimeType[] = "application/x-kmail-identity-drag";
IdentityDrag::IdentityDrag( const KPIM::Identity & ident,
- QWidget * dragSource, const char * name )
- : QDragObject( dragSource, name ), mIdent( ident )
+ TQWidget * dragSource, const char * name )
+ : TQDragObject( dragSource, name ), mIdent( ident )
{
}
@@ -54,26 +54,26 @@ namespace KMail {
return 0;
}
- QByteArray IdentityDrag::encodedData( const char * mimetype ) const {
- QByteArray a;
+ TQByteArray IdentityDrag::encodedData( const char * mimetype ) const {
+ TQByteArray a;
if ( !qstrcmp( mimetype, kmailIdentityMimeType ) ) {
- QDataStream s( a, IO_WriteOnly );
+ TQDataStream s( a, IO_WriteOnly );
s << mIdent;
}
return a;
}
- bool IdentityDrag::canDecode( const QMimeSource * e ) {
+ bool IdentityDrag::canDecode( const TQMimeSource * e ) {
// ### feel free to add vCard and other stuff here and in decode...
return e->provides( kmailIdentityMimeType );
}
- bool IdentityDrag::decode( const QMimeSource * e, KPIM::Identity & i ) {
+ bool IdentityDrag::decode( const TQMimeSource * e, KPIM::Identity & i ) {
if ( e->provides( kmailIdentityMimeType ) ) {
- QDataStream s( e->encodedData( kmailIdentityMimeType ), IO_ReadOnly );
+ TQDataStream s( e->encodedData( kmailIdentityMimeType ), IO_ReadOnly );
s >> i;
return true;
}