summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/listboxdnd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/listboxdnd.cpp')
-rw-r--r--kdevdesigner/designer/listboxdnd.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdevdesigner/designer/listboxdnd.cpp b/kdevdesigner/designer/listboxdnd.cpp
index 54498478..cfdfd587 100644
--- a/kdevdesigner/designer/listboxdnd.cpp
+++ b/kdevdesigner/designer/listboxdnd.cpp
@@ -35,7 +35,7 @@
class ListBoxItemDrag : public TQStoredDrag
{
public:
- ListBoxItemDrag( ListBoxItemList & items, bool sendPtr = FALSE, TQListBox * parent = 0, const char * name = 0 );
+ ListBoxItemDrag( ListBoxItemList & items, bool sendPtr = false, TQListBox * parent = 0, const char * name = 0 );
~ListBoxItemDrag() {};
static bool canDecode( TQDragMoveEvent * event );
static bool decode( TQDropEvent * event, TQListBox * parent, TQListBoxItem * insertPoint );
@@ -48,7 +48,7 @@ ListBoxDnd::ListBoxDnd( TQListBox * eventSource, const char * name )
void ListBoxDnd::confirmDrop( TQListBoxItem * )
{
- dropConfirmed = TRUE;
+ dropConfirmed = true;
}
bool ListBoxDnd::dropEvent( TQDropEvent * event )
@@ -58,7 +58,7 @@ bool ListBoxDnd::dropEvent( TQDropEvent * event )
if ( dMode & NullDrop ) { // combined with Move, a NullDrop will delete an item
event->accept();
emit dropped( 0 ); // a NullDrop
- return TRUE;
+ return true;
}
TQPoint pos = event->pos();
@@ -74,14 +74,14 @@ bool ListBoxDnd::dropEvent( TQDropEvent * event )
}
line->hide();
- dragInside = FALSE;
+ dragInside = false;
- return TRUE;
+ return true;
}
bool ListBoxDnd::mouseMoveEvent( TQMouseEvent * event )
{
- if ( event->state() & Qt::LeftButton ) {
+ if ( event->state() & TQt::LeftButton ) {
if ( ( event->pos() - mousePressPos ).manhattanLength() > 3 ) {
ListBoxItemList list;
@@ -104,15 +104,15 @@ bool ListBoxDnd::mouseMoveEvent( TQMouseEvent * event )
if ( dMode & Move ) {
if ( dropConfirmed ) {
// ###FIX: memleak ? in internal mode, only pointers are transfered...
- //list.setAutoDelete( TRUE );
+ //list.setAutoDelete( true );
list.clear();
- dropConfirmed = FALSE;
+ dropConfirmed = false;
}
insertList( list ); // "show" items
}
}
}
- return FALSE;
+ return false;
}
int ListBoxDnd::buildList( ListBoxItemList & list )
@@ -120,7 +120,7 @@ int ListBoxDnd::buildList( ListBoxItemList & list )
TQListBoxItem * i = ((TQListBox *)src)->firstItem();
while ( i ) {
if ( i->isSelected() ) {
- ((TQListBox *)src)->setSelected( i, FALSE );
+ ((TQListBox *)src)->setSelected( i, false );
list.append( i );
}
i = i->next();
@@ -299,7 +299,7 @@ bool ListBoxItemDrag::decode( TQDropEvent * event, TQListBox * parent, TQListBox
}
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}