summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttViewItemDrag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdgantt/KDGanttViewItemDrag.cpp')
-rw-r--r--kdgantt/KDGanttViewItemDrag.cpp34
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;
}