diff options
Diffstat (limited to 'examples/demo/main.cpp')
-rw-r--r-- | examples/demo/main.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/examples/demo/main.cpp b/examples/demo/main.cpp index 381e44aae..dc015865d 100644 --- a/examples/demo/main.cpp +++ b/examples/demo/main.cpp @@ -70,7 +70,7 @@ static void qdemo_set_caption( CategoryInterface *c, int i ) class WidgetCategory : public CategoryInterface { public: - WidgetCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( FALSE ) {} + WidgetCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( false ) {} TQString name() const { return "Widgets"; } TQIconSet icon() const { return TQPixmap( widgeticon ); } @@ -95,7 +95,7 @@ public: void create() { if ( created ) return; - created = TRUE; + created = true; stack->addWidget( new WidgetsBase( stack ), categoryOffset() + 0 ); stack->addWidget( new DnDDemo( stack ), categoryOffset() + 1 ); } @@ -111,7 +111,7 @@ private: class DatabaseCategory : public CategoryInterface { public: - DatabaseCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( FALSE ) {} + DatabaseCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( false ) {} TQString name() const { return "Database"; } TQIconSet icon() const { return TQPixmap( dbicon ); } @@ -133,7 +133,7 @@ public: void create() { if ( created ) return; - created = TRUE; + created = true; stack->addWidget( new SqlEx( stack ), categoryOffset() + 0 ); } @@ -149,7 +149,7 @@ private: class CanvasCategory : public CategoryInterface { public: - CanvasCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( FALSE ) {} + CanvasCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( false ) {} TQString name() const { return "2D Graphics"; } TQIconSet icon() const { return TQPixmap( twodicon ); } @@ -174,7 +174,7 @@ public: void create() { if ( created ) return; - created = TRUE; + created = true; stack->addWidget( new GraphWidget( stack ), categoryOffset() + 0 ); stack->addWidget( new DisplayWidget( stack ), categoryOffset() + 1 ); } @@ -191,7 +191,7 @@ private: class OpenGLCategory : public CategoryInterface { public: - OpenGLCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( FALSE ) {} + OpenGLCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( false ) {} TQString name() const { return "3D Graphics"; } TQIconSet icon() const { return TQPixmap( threedicon ); } @@ -219,7 +219,7 @@ public: void create() { if ( created ) return; - created = TRUE; + created = true; stack->addWidget( new GLWorkspace( stack ), categoryOffset() + 0 ); stack->addWidget( new GLLandscapeViewer( stack ), categoryOffset() + 1 ); stack->addWidget( new GLInfoText( stack ), categoryOffset() + 2 ); @@ -235,7 +235,7 @@ private: class TextCategory : public CategoryInterface { public: - TextCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( FALSE ) {} + TextCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( false ) {} TQString name() const { return "Text Drawing/Editing"; } TQIconSet icon() const { return TQPixmap( texticon ); } @@ -260,7 +260,7 @@ public: void create() { if ( created ) return; - created = TRUE; + created = true; TextEdit *te = new TextEdit( stack ); te->load( "textdrawing/example.html" ); stack->addWidget( te, categoryOffset() + 0 ); @@ -278,7 +278,7 @@ private: class I18NCategory : public CategoryInterface { public: - I18NCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( FALSE ) {} + I18NCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( false ) {} TQString name() const { return "Internationalization"; } TQIconSet icon() const { return TQPixmap( internicon ); } @@ -300,7 +300,7 @@ public: void create() { if ( created ) return; - created = TRUE; + created = true; stack->addWidget( new I18nDemo( stack ), categoryOffset() + 0 ); } int categoryOffset() const { return 100000; } @@ -314,7 +314,7 @@ private: class GameCategory : public CategoryInterface { public: - GameCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( FALSE ) {} + GameCategory( TQWidgetStack *s ) : CategoryInterface( s ), created( false ) {} TQString name() const { return "Game"; } TQIconSet icon() const { return TQPixmap( joyicon ); } @@ -336,7 +336,7 @@ public: void create() { if ( created ) return; - created = TRUE; + created = true; stack->addWidget( new KAstTopLevel( stack ), categoryOffset() + 0 ); } int categoryOffset() const { return 1000000; } |