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 /kdgantt/KDGanttViewItemDrag.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 'kdgantt/KDGanttViewItemDrag.cpp')
-rw-r--r-- | kdgantt/KDGanttViewItemDrag.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kdgantt/KDGanttViewItemDrag.cpp b/kdgantt/KDGanttViewItemDrag.cpp index bbc629141..23bf90ac9 100644 --- a/kdgantt/KDGanttViewItemDrag.cpp +++ b/kdgantt/KDGanttViewItemDrag.cpp @@ -32,7 +32,7 @@ #include <KDGanttViewItemDrag.h> #include <KDGanttViewItem.h> -#include <qpixmap.h> +#include <tqpixmap.h> #include <KDGanttView.h> /*! @@ -54,28 +54,28 @@ \param source the source widget \param name the internal object name */ -KDGanttViewItemDrag::KDGanttViewItemDrag( KDGanttViewItem* item , QWidget *source, const char * name ) : QStoredDrag("x-application/x-KDGanttViewItemDrag", source, name ) +KDGanttViewItemDrag::KDGanttViewItemDrag( KDGanttViewItem* item , TQWidget *source, const char * name ) : TQStoredDrag("x-application/x-KDGanttViewItemDrag", source, name ) { myItem = item; - QPixmap pix; + TQPixmap pix; if (item->pixmap() ) pix = *(item->pixmap()) ; else { KDGanttViewItem::Shape start, middle, end; item->shapes( start, middle, end ); - QColor st, mi, en; + TQColor st, mi, en; item->colors( st, mi, en ); pix =item->myGanttView->getPixmap( start, st, item->myGanttView->lvBackgroundColor(), 11 ); } - setPixmap( pix , QPoint( -10,-10 )); - QDomDocument doc( "GanttView" ); - QString docstart = "<GanttView/>"; + setPixmap( pix , TQPoint( -10,-10 )); + TQDomDocument doc( "GanttView" ); + TQString docstart = "<GanttView/>"; doc.setContent( docstart ); - QDomElement itemsElement = doc.createElement( "Items" ); + TQDomElement itemsElement = doc.createElement( "Items" ); doc.documentElement().appendChild( itemsElement ); item->createNode( doc, itemsElement ); - QDataStream s( array, IO_WriteOnly ); + TQDataStream s( array, IO_WriteOnly ); s << doc.toString(); } @@ -86,13 +86,13 @@ KDGanttViewItemDrag::KDGanttViewItemDrag( KDGanttViewItem* item , QWidget *sourc \param c the format of the data \return the encoded data of the drag object */ -QByteArray KDGanttViewItemDrag::encodedData( const char * c) const +TQByteArray KDGanttViewItemDrag::encodedData( const char * c) const { - QString s ( c ); + TQString s ( c ); if ( s == "x-application/x-KDGanttViewItemDrag" ) { return array; } - return QByteArray(); + return TQByteArray(); } /*! @@ -112,9 +112,9 @@ KDGanttViewItem* KDGanttViewItemDrag::getItem() \param e the mime source that has been dragged \return true if KDGanttViewItemDrag can decode the data in \a e. */ -bool KDGanttViewItemDrag::canDecode ( const QMimeSource * e ) +bool KDGanttViewItemDrag::canDecode ( const TQMimeSource * e ) { - if ( QString( e->format() ) == "x-application/x-KDGanttViewItemDrag" ) + if ( TQString( e->format() ) == "x-application/x-KDGanttViewItemDrag" ) return true; return false; @@ -129,11 +129,11 @@ bool KDGanttViewItemDrag::canDecode ( const QMimeSource * e ) \param string the resulting XML string \return true if the operation succeeded */ -bool KDGanttViewItemDrag::decode ( const QMimeSource * e , QString & string) +bool KDGanttViewItemDrag::decode ( const TQMimeSource * e , TQString & string) { - QByteArray arr; + TQByteArray arr; arr = e->encodedData( "x-application/x-KDGanttViewItemDrag"); - QDataStream s( arr, IO_ReadOnly ); + TQDataStream s( arr, IO_ReadOnly ); s >> string; return true; } |