diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/listdnd.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/listdnd.cpp')
-rw-r--r-- | kdevdesigner/designer/listdnd.cpp | 52 |
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; |