summaryrefslogtreecommitdiffstats
path: root/examples/iconview/simple_dd/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/iconview/simple_dd/main.cpp')
-rw-r--r--examples/iconview/simple_dd/main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/iconview/simple_dd/main.cpp b/examples/iconview/simple_dd/main.cpp
index 16d3b53c5..e638bcdc3 100644
--- a/examples/iconview/simple_dd/main.cpp
+++ b/examples/iconview/simple_dd/main.cpp
@@ -78,8 +78,8 @@ const char* green_icon[]={
DDListBox::DDListBox( TQWidget * parent, const char * name, WFlags f ) :
TQListBox( parent, name, f )
{
- setAcceptDrops( TRUE );
- dragging = FALSE;
+ setAcceptDrops( true );
+ dragging = false;
}
@@ -102,7 +102,7 @@ void DDListBox::dropEvent( TQDropEvent *evt )
void DDListBox::mousePressEvent( TQMouseEvent *evt )
{
TQListBox::mousePressEvent( evt );
- dragging = TRUE;
+ dragging = true;
}
@@ -111,7 +111,7 @@ void DDListBox::mouseMoveEvent( TQMouseEvent * )
if ( dragging ) {
TQDragObject *d = new TQTextDrag( currentText(), this );
d->dragCopy(); // do NOT delete d.
- dragging = FALSE;
+ dragging = false;
}
}
@@ -122,8 +122,8 @@ void DDListBox::mouseMoveEvent( TQMouseEvent * )
bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const
{
if ( mime->provides( "text/plain" ) )
- return TRUE;
- return FALSE;
+ return true;
+ return false;
}
@@ -149,7 +149,7 @@ void DDIconView::slotNewItem( TQDropEvent *evt, const TQValueList<TQIconDragItem
if ( TQTextDrag::decode( evt, label ) ) {
DDIconViewItem *item = new DDIconViewItem( this, label );
- item->setRenameEnabled( TRUE );
+ item->setRenameEnabled( true );
}
}
@@ -175,11 +175,11 @@ int main( int argc, char *argv[] )
// Populate the TQIconView with icons
DDIconViewItem *item;
item = new DDIconViewItem( iv, "Red", TQPixmap( red_icon ) );
- item->setRenameEnabled( TRUE );
+ item->setRenameEnabled( true );
item = new DDIconViewItem( iv, "Green", TQPixmap( green_icon ) );
- item->setRenameEnabled( TRUE );
+ item->setRenameEnabled( true );
item = new DDIconViewItem( iv, "Blue", TQPixmap( blue_icon ) );
- item->setRenameEnabled( TRUE );
+ item->setRenameEnabled( true );
return app.exec();
}