summaryrefslogtreecommitdiffstats
path: root/examples/demo/dnd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demo/dnd')
-rw-r--r--examples/demo/dnd/dnd.cpp2
-rw-r--r--examples/demo/dnd/iconview.cpp2
-rw-r--r--examples/demo/dnd/listview.cpp12
-rw-r--r--examples/demo/dnd/styledbutton.cpp10
4 files changed, 13 insertions, 13 deletions
diff --git a/examples/demo/dnd/dnd.cpp b/examples/demo/dnd/dnd.cpp
index bf5ddd0f1..6dbc90c01 100644
--- a/examples/demo/dnd/dnd.cpp
+++ b/examples/demo/dnd/dnd.cpp
@@ -91,7 +91,7 @@ DnDDemo::DnDDemo( TQWidget* parent, const char* name )
IconItem item = it.data();
TQIconViewItem *iitem = new IconViewItem( iconView, item.name(), *item.pixmap(), it.key() );
- iitem->setRenameEnabled( TRUE );
+ iitem->setRenameEnabled( true );
TQListViewItem *litem = new ListViewItem( listView, item.name(), it.key() );
litem->setPixmap( 0, *item.pixmap() );
}
diff --git a/examples/demo/dnd/iconview.cpp b/examples/demo/dnd/iconview.cpp
index 51bfff304..fc294f197 100644
--- a/examples/demo/dnd/iconview.cpp
+++ b/examples/demo/dnd/iconview.cpp
@@ -36,7 +36,7 @@ void IconView::slotNewItem( TQDropEvent *e, const TQValueList<TQIconDragItem>& )
if ( TQTextDrag::decode( e, tag ) ) {
IconItem item = ((DnDDemo*) parentWidget())->findItem( tag );
IconViewItem *iitem = new IconViewItem( this, item.name(), *item.pixmap(), tag );
- iitem->setRenameEnabled( TRUE );
+ iitem->setRenameEnabled( true );
}
e->acceptAction();
}
diff --git a/examples/demo/dnd/listview.cpp b/examples/demo/dnd/listview.cpp
index 6b66d242e..3ec29140d 100644
--- a/examples/demo/dnd/listview.cpp
+++ b/examples/demo/dnd/listview.cpp
@@ -6,9 +6,9 @@
ListView::ListView( TQWidget* parent, const char* name )
: TQListView( parent, name )
{
- setAcceptDrops( TRUE );
- setSorting( -1, FALSE );
- dragging = FALSE;
+ setAcceptDrops( true );
+ setSorting( -1, false );
+ dragging = false;
}
ListView::~ListView()
@@ -40,7 +40,7 @@ void ListView::dropEvent( TQDropEvent *e )
void ListView::contentsMousePressEvent( TQMouseEvent *e )
{
TQListView::contentsMousePressEvent( e );
- dragging = TRUE;
+ dragging = true;
pressPos = e->pos();
}
@@ -60,13 +60,13 @@ void ListView::contentsMouseMoveEvent( TQMouseEvent *e )
drg->setPixmap(*p);
drg->setSubtype( "dragdemotag" );
drg->dragCopy();
- dragging = FALSE;
+ dragging = false;
}
}
void ListView::contentsMouseReleaseEvent( TQMouseEvent *e )
{
TQListView::contentsMouseReleaseEvent( e );
- dragging = FALSE;
+ dragging = false;
}
diff --git a/examples/demo/dnd/styledbutton.cpp b/examples/demo/dnd/styledbutton.cpp
index 532c66cca..a7cd10664 100644
--- a/examples/demo/dnd/styledbutton.cpp
+++ b/examples/demo/dnd/styledbutton.cpp
@@ -44,10 +44,10 @@
#include <tqstyle.h>
StyledButton::StyledButton(TQWidget* parent, const char* name)
- : TQButton( parent, name ), pix( 0 ), spix( 0 ), edit( ColorEditor ), s( 0 ), mousePressed( FALSE )
+ : TQButton( parent, name ), pix( 0 ), spix( 0 ), edit( ColorEditor ), s( 0 ), mousePressed( false )
{
setMinimumSize( minimumSizeHint() );
- setAcceptDrops( TRUE );
+ setAcceptDrops( true );
connect( this, TQ_SIGNAL(clicked()), TQ_SLOT(onEditor()));
}
@@ -222,7 +222,7 @@ void StyledButton::onEditor()
void StyledButton::mousePressEvent(TQMouseEvent* e)
{
TQButton::mousePressEvent(e);
- mousePressed = TRUE;
+ mousePressed = true;
pressPos = e->pos();
}
@@ -241,7 +241,7 @@ void StyledButton::mouseMoveEvent(TQMouseEvent* e)
p.drawRect( 0, 0, pix.width(), pix.height() );
p.end();
drg->setPixmap( pix );
- mousePressed = FALSE;
+ mousePressed = false;
drg->dragCopy();
}
else if ( edit == PixmapEditor && pix && !pix->isNull() ) {
@@ -249,7 +249,7 @@ void StyledButton::mouseMoveEvent(TQMouseEvent* e)
TQImageDrag *drg = new TQImageDrag( img, this );
if(spix)
drg->setPixmap( *spix );
- mousePressed = FALSE;
+ mousePressed = false;
drg->dragCopy();
}
}