diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /karbon/karbon_drag.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karbon/karbon_drag.cpp')
-rw-r--r-- | karbon/karbon_drag.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/karbon/karbon_drag.cpp b/karbon/karbon_drag.cpp index c605bb3c..3c60e94d 100644 --- a/karbon/karbon_drag.cpp +++ b/karbon/karbon_drag.cpp @@ -19,17 +19,17 @@ #include "karbon_drag.h" -#include <qcstring.h> -#include <qdom.h> -#include <qtextstream.h> +#include <tqcstring.h> +#include <tqdom.h> +#include <tqtextstream.h> #include "vdocument.h" -QCString KarbonDrag::m_encodeFormats[NumEncodeFmts]; -QCString KarbonDrag::m_decodeFormats[NumDecodeFmts]; +TQCString KarbonDrag::m_encodeFormats[NumEncodeFmts]; +TQCString KarbonDrag::m_decodeFormats[NumDecodeFmts]; -KarbonDrag::KarbonDrag( QWidget *dragSource, const char *name ) - : QDragObject( dragSource, name ) +KarbonDrag::KarbonDrag( TQWidget *dragSource, const char *name ) + : TQDragObject( dragSource, name ) { m_encodeFormats[0] = "application/vnd.kde.karbon"; m_decodeFormats[0] = "application/vnd.kde.karbon"; @@ -45,18 +45,18 @@ KarbonDrag::format( int i ) const return 0L; } -QByteArray -KarbonDrag::encodedData( const char* mimetype ) const +TQByteArray +KarbonDrag::tqencodedData( const char* mimetype ) const { - QCString result; + TQCString result; if( m_encodeFormats[0] == mimetype ) { VObjectListIterator itr( m_objects ); // build a xml fragment containing the selection as karbon xml - QDomDocument doc( "clip" ); - QDomElement elem = doc.createElement( "clip" ); - QTextStream ts( result, IO_WriteOnly ); + TQDomDocument doc( "clip" ); + TQDomElement elem = doc.createElement( "clip" ); + TQTextStream ts( result, IO_WriteOnly ); for( ; itr.current() ; ++itr ) itr.current()->save( elem ); @@ -68,7 +68,7 @@ KarbonDrag::encodedData( const char* mimetype ) const } bool -KarbonDrag::canDecode( QMimeSource* e) +KarbonDrag::canDecode( TQMimeSource* e) { for( int i = 0; i < NumDecodeFmts; i++ ) { @@ -80,14 +80,14 @@ KarbonDrag::canDecode( QMimeSource* e) } bool -KarbonDrag::decode( QMimeSource* e, VObjectList& sl, VDocument& vdoc ) +KarbonDrag::decode( TQMimeSource* e, VObjectList& sl, VDocument& vdoc ) { if( e->provides( m_decodeFormats[0] ) ) { - QDomDocument doc( "clip" ); - QByteArray data = e->encodedData( m_decodeFormats[0] ); - doc.setContent( QCString( data, data.size()+1 ) ); - QDomElement clip = doc.documentElement(); + TQDomDocument doc( "clip" ); + TQByteArray data = e->tqencodedData( m_decodeFormats[0] ); + doc.setContent( TQCString( data, data.size()+1 ) ); + TQDomElement clip = doc.documentElement(); // Try to parse the clipboard data if( clip.tagName() == "clip" ) { |