diff options
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; |