diff options
Diffstat (limited to 'doc/html/simple_dd-example.html')
-rw-r--r-- | doc/html/simple_dd-example.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html index 5234a03fa..fb831b198 100644 --- a/doc/html/simple_dd-example.html +++ b/doc/html/simple_dd-example.html @@ -183,8 +183,8 @@ const char* green_icon[]={ <a name="f589"></a>DDListBox::DDListBox( <a href="tqwidget.html">TQWidget</a> * parent, const char * name, WFlags f ) : <a href="tqlistbox.html">TQListBox</a>( parent, name, f ) { - <a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>( TRUE ); - dragging = FALSE; + <a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>( true ); + dragging = false; } @@ -207,7 +207,7 @@ const char* green_icon[]={ <a name="x2832"></a>void DDListBox::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *evt ) { TQListBox::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( evt ); - dragging = TRUE; + dragging = true; } @@ -216,7 +216,7 @@ const char* green_icon[]={ if ( dragging ) { <a href="tqdragobject.html">TQDragObject</a> *d = new <a href="tqtextdrag.html">TQTextDrag</a>( currentText(), this ); <a name="x2818"></a> d-><a href="tqdragobject.html#dragCopy">dragCopy</a>(); // do NOT delete d. - dragging = FALSE; + dragging = false; } } @@ -227,8 +227,8 @@ const char* green_icon[]={ <a name="x2822"></a>bool DDIconViewItem::<a href="tqiconviewitem.html#acceptDrop">acceptDrop</a>( const <a href="tqmimesource.html">TQMimeSource</a> *mime ) const { <a name="x2825"></a> if ( mime-><a href="tqmimesource.html#provides">provides</a>( "text/plain" ) ) - return TRUE; - return FALSE; + return true; + return false; } @@ -254,7 +254,7 @@ void <a name="f588"></a>DDIconView::slotNewItem( <a href="tqdropevent.html">TQDr if ( TQTextDrag::<a href="tqtextdrag.html#decode">decode</a>( evt, label ) ) { DDIconViewItem *item = new DDIconViewItem( this, label ); -<a name="x2824"></a> item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); +<a name="x2824"></a> item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( true ); } } @@ -280,11 +280,11 @@ int main( int argc, char *argv[] ) // Populate the TQIconView with icons DDIconViewItem *item; item = new DDIconViewItem( iv, "Red", TQPixmap( red_icon ) ); - item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); + item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( true ); item = new DDIconViewItem( iv, "Green", TQPixmap( green_icon ) ); - item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); + item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( true ); item = new DDIconViewItem( iv, "Blue", TQPixmap( blue_icon ) ); - item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( TRUE ); + item-><a href="tqiconviewitem.html#setRenameEnabled">setRenameEnabled</a>( true ); return app.<a href="tqapplication.html#exec">exec</a>(); } |