diff options
Diffstat (limited to 'examples/dragdrop')
| -rw-r--r-- | examples/dragdrop/dropsite.cpp | 2 | ||||
| -rw-r--r-- | examples/dragdrop/main.cpp | 8 | ||||
| -rw-r--r-- | examples/dragdrop/secret.cpp | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/dragdrop/dropsite.cpp b/examples/dragdrop/dropsite.cpp index 379448518..9cf457936 100644 --- a/examples/dragdrop/dropsite.cpp +++ b/examples/dragdrop/dropsite.cpp @@ -23,7 +23,7 @@ DropSite::DropSite( TQWidget * parent, const char * name ) : TQLabel( parent, name ) { - setAcceptDrops(TRUE); + setAcceptDrops(true); } diff --git a/examples/dragdrop/main.cpp b/examples/dragdrop/main.cpp index 661c8a52d..c17614c1a 100644 --- a/examples/dragdrop/main.cpp +++ b/examples/dragdrop/main.cpp @@ -17,7 +17,7 @@ #include <tqlabel.h> #include <tqpixmap.h> -static void addStuff( TQWidget * parent, bool image, bool secret = FALSE ) +static void addStuff( TQWidget * parent, bool image, bool secret = false ) { TQVBoxLayout * tll = new TQVBoxLayout( parent, 10 ); DropSite * d = new DropSite( parent ); @@ -54,17 +54,17 @@ int main( int argc, char ** argv ) TQApplication a( argc, argv ); TQWidget mw; - addStuff( &mw, TRUE ); + addStuff( &mw, true ); mw.setCaption( "TQt Example - Drag and Drop" ); mw.show(); TQWidget mw2; - addStuff( &mw2, FALSE ); + addStuff( &mw2, false ); mw2.setCaption( "TQt Example - Drag and Drop" ); mw2.show(); TQWidget mw3; - addStuff( &mw3, TRUE, TRUE ); + addStuff( &mw3, true, true ); mw3.setCaption( "TQt Example - Drag and Drop" ); mw3.show(); diff --git a/examples/dragdrop/secret.cpp b/examples/dragdrop/secret.cpp index 5a152048e..cf1ff682d 100644 --- a/examples/dragdrop/secret.cpp +++ b/examples/dragdrop/secret.cpp @@ -39,9 +39,9 @@ bool SecretDrag::decode( TQDropEvent* e, TQString& str ) TQString msg; msg.sprintf("The secret number is %d", payload[0] ); str = msg; - return TRUE; + return true; } - return FALSE; + return false; } |
