summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/listdnd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/listdnd.cpp')
-rw-r--r--kdevdesigner/designer/listdnd.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kdevdesigner/designer/listdnd.cpp b/kdevdesigner/designer/listdnd.cpp
index 34562e6f..7df65cbd 100644
--- a/kdevdesigner/designer/listdnd.cpp
+++ b/kdevdesigner/designer/listdnd.cpp
@@ -25,11 +25,11 @@
**********************************************************************/
#include "listdnd.h"
-#include <qwidget.h>
-#include <qpainter.h>
+#include <tqwidget.h>
+#include <tqpainter.h>
-ListDnd::ListDnd( QScrollView * eventSource, const char * name )
- : QObject( eventSource, name ),
+ListDnd::ListDnd( TQScrollView * eventSource, const char * name )
+ : TQObject( eventSource, name ),
dragInside( FALSE ), dragDelete( TRUE ), dropConfirmed( FALSE ), dMode( Both )
{
src = eventSource;
@@ -37,7 +37,7 @@ ListDnd::ListDnd( QScrollView * eventSource, const char * name )
src->installEventFilter( this );
src->viewport()->installEventFilter( this );
- line = new QWidget( src->viewport(), 0, Qt::WStyle_NoBorder | WStyle_StaysOnTop );
+ line = new TQWidget( src->viewport(), 0, Qt::WStyle_NoBorder | WStyle_StaysOnTop );
line->setBackgroundColor( Qt::black );
line->resize( src->viewport()->width(), 2 );
line->hide();
@@ -53,21 +53,21 @@ int ListDnd::dragMode() const
return dMode;
}
-bool ListDnd::eventFilter( QObject *, QEvent * event )
+bool ListDnd::eventFilter( TQObject *, TQEvent * event )
{
switch ( event->type() ) {
- case QEvent::DragEnter:
- return dragEnterEvent( (QDragEnterEvent *) event );
- case QEvent::DragLeave:
- return dragLeaveEvent( (QDragLeaveEvent *) event );
- case QEvent::DragMove:
- return dragMoveEvent( (QDragMoveEvent *) event );
- case QEvent::Drop:
- return dropEvent( (QDropEvent *) event );
- case QEvent::MouseButtonPress:
- return mousePressEvent( (QMouseEvent *) event );
- case QEvent::MouseMove:
- return mouseMoveEvent( (QMouseEvent *) event );
+ case TQEvent::DragEnter:
+ return dragEnterEvent( (TQDragEnterEvent *) event );
+ case TQEvent::DragLeave:
+ return dragLeaveEvent( (TQDragLeaveEvent *) event );
+ case TQEvent::DragMove:
+ return dragMoveEvent( (TQDragMoveEvent *) event );
+ case TQEvent::Drop:
+ return dropEvent( (TQDropEvent *) event );
+ case TQEvent::MouseButtonPress:
+ return mousePressEvent( (TQMouseEvent *) event );
+ case TQEvent::MouseMove:
+ return mouseMoveEvent( (TQMouseEvent *) event );
default:
break;
}
@@ -75,7 +75,7 @@ bool ListDnd::eventFilter( QObject *, QEvent * event )
}
-bool ListDnd::dragEnterEvent( QDragEnterEvent * event )
+bool ListDnd::dragEnterEvent( TQDragEnterEvent * event )
{
if ( dMode == None ) {
return TRUE;
@@ -96,14 +96,14 @@ bool ListDnd::dragEnterEvent( QDragEnterEvent * event )
return TRUE;
}
-bool ListDnd::dragLeaveEvent( QDragLeaveEvent * )
+bool ListDnd::dragLeaveEvent( TQDragLeaveEvent * )
{
dragInside = FALSE;
line->hide();
return TRUE;
}
-bool ListDnd::dragMoveEvent( QDragMoveEvent * event )
+bool ListDnd::dragMoveEvent( TQDragMoveEvent * event )
{
if ( dragInside && dMode && !( dMode & NullDrop ) ) {
updateLine( event->pos() );
@@ -111,31 +111,31 @@ bool ListDnd::dragMoveEvent( QDragMoveEvent * event )
return TRUE;
}
-bool ListDnd::dropEvent( QDropEvent * )
+bool ListDnd::dropEvent( TQDropEvent * )
{
// do nothing
return FALSE;
}
-bool ListDnd::mousePressEvent( QMouseEvent * event )
+bool ListDnd::mousePressEvent( TQMouseEvent * event )
{
if ( event->button() == LeftButton )
mousePressPos = event->pos();
return FALSE;
}
-bool ListDnd::mouseMoveEvent( QMouseEvent * )
+bool ListDnd::mouseMoveEvent( TQMouseEvent * )
{
// do nothing
return FALSE;
}
-void ListDnd::updateLine( const QPoint & )
+void ListDnd::updateLine( const TQPoint & )
{
// do nothing
}
-bool ListDnd::canDecode( QDragEnterEvent * )
+bool ListDnd::canDecode( TQDragEnterEvent * )
{
// do nothing
return FALSE;