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 /kivio/kiviopart/kivio_spawner_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 'kivio/kiviopart/kivio_spawner_drag.cpp')
-rw-r--r-- | kivio/kiviopart/kivio_spawner_drag.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kivio/kiviopart/kivio_spawner_drag.cpp b/kivio/kiviopart/kivio_spawner_drag.cpp index 169aaf79..7d952e05 100644 --- a/kivio/kiviopart/kivio_spawner_drag.cpp +++ b/kivio/kiviopart/kivio_spawner_drag.cpp @@ -25,8 +25,8 @@ #include <kdebug.h> -KivioSpawnerDrag::KivioSpawnerDrag( KivioIconView *view, QWidget *parent, const char *name ) - : QIconDrag( parent, name ) +KivioSpawnerDrag::KivioSpawnerDrag( KivioIconView *view, TQWidget *tqparent, const char *name ) + : TQIconDrag( tqparent, name ) { m_pView = view; } @@ -47,17 +47,17 @@ const char *KivioSpawnerDrag::format( int i ) const return 0L; } -QByteArray KivioSpawnerDrag::encodedData( const char *mime ) const +TQByteArray KivioSpawnerDrag::tqencodedData( const char *mime ) const { - QByteArray a; + TQByteArray a; - if( QString(mime) == "application/x-qiconlist" ) + if( TQString(mime) == "application/x-qiconlist" ) { - a = QIconDrag::encodedData(mime); + a = TQIconDrag::tqencodedData(mime); } - else if( QString(mime) == "kivio/stencilSpawner" ) + else if( TQString(mime) == "kivio/stencilSpawner" ) { - QString s = m_spawners.join("\r\n"); + TQString s = m_spawners.join("\r\n"); a.resize(s.length()); memcpy( a.data(), s.latin1(), s.length() ); } @@ -65,18 +65,18 @@ QByteArray KivioSpawnerDrag::encodedData( const char *mime ) const return a; } -bool KivioSpawnerDrag::canDecode( QMimeSource *e ) +bool KivioSpawnerDrag::canDecode( TQMimeSource *e ) { return e->provides( "application/x-qiconlist" ) || e->provides( "kivio/stencilSpawner" ); } -void KivioSpawnerDrag::append( const QIconDragItem &item, const QRect &pr, - const QRect &tr, KivioStencilSpawner &spawner ) +void KivioSpawnerDrag::append( const TQIconDragItem &item, const TQRect &pr, + const TQRect &tr, KivioStencilSpawner &spawner ) { - QIconDrag::append( item, pr, tr ); + TQIconDrag::append( item, pr, tr ); - QString full = spawner.set()->dir() + "/" + spawner.info()->title(); + TQString full = spawner.set()->dir() + "/" + spawner.info()->title(); kdDebug(43000) << "KivioSpawnerDrag::append() - Adding " << full << endl; |