summaryrefslogtreecommitdiffstats
path: root/examples/demo/textdrawing/textedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demo/textdrawing/textedit.cpp')
-rw-r--r--examples/demo/textdrawing/textedit.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/examples/demo/textdrawing/textedit.cpp b/examples/demo/textdrawing/textedit.cpp
index c002de194..2f6d4521b 100644
--- a/examples/demo/textdrawing/textedit.cpp
+++ b/examples/demo/textdrawing/textedit.cpp
@@ -110,7 +110,7 @@ void TextEdit::setupTextActions()
TQPopupMenu *menu = new TQPopupMenu( this );
menuBar()->insertItem( tr( "For&mat" ), menu );
- comboStyle = new TQComboBox( FALSE, tb );
+ comboStyle = new TQComboBox( false, tb );
comboStyle->insertItem( tr("Standard") );
comboStyle->insertItem( tr("Bullet List (Disc)") );
comboStyle->insertItem( tr("Bullet List (Circle)") );
@@ -121,14 +121,14 @@ void TextEdit::setupTextActions()
connect( comboStyle, TQ_SIGNAL( activated( int ) ),
this, TQ_SLOT( textStyle( int ) ) );
- comboFont = new TQComboBox( TRUE, tb );
+ comboFont = new TQComboBox( true, tb );
TQFontDatabase db;
comboFont->insertStringList( db.families() );
connect( comboFont, TQ_SIGNAL( activated( const TQString & ) ),
this, TQ_SLOT( textFamily( const TQString & ) ) );
comboFont->lineEdit()->setText( TQApplication::font().family() );
- comboSize = new TQComboBox( TRUE, tb );
+ comboSize = new TQComboBox( true, tb );
TQValueList<int> sizes = db.standardSizes();
TQValueList<int>::Iterator it = sizes.begin();
for ( ; it != sizes.end(); ++it )
@@ -141,39 +141,39 @@ void TextEdit::setupTextActions()
connect( actionTextBold, TQ_SIGNAL( activated() ), this, TQ_SLOT( textBold() ) );
actionTextBold->addTo( tb );
actionTextBold->addTo( menu );
- actionTextBold->setToggleAction( TRUE );
+ actionTextBold->setToggleAction( true );
actionTextItalic = new TQAction( tr( "Italic" ), TQPixmap( "textdrawing/textitalic.png" ), tr( "&Italic" ), CTRL + Key_I, this, "textItalic" );
connect( actionTextItalic, TQ_SIGNAL( activated() ), this, TQ_SLOT( textItalic() ) );
actionTextItalic->addTo( tb );
actionTextItalic->addTo( menu );
- actionTextItalic->setToggleAction( TRUE );
+ actionTextItalic->setToggleAction( true );
actionTextUnderline = new TQAction( tr( "Underline" ), TQPixmap( "textdrawing/textunderline.png" ), tr( "&Underline" ), CTRL + Key_U, this, "textUnderline" );
connect( actionTextUnderline, TQ_SIGNAL( activated() ), this, TQ_SLOT( textUnderline() ) );
actionTextUnderline->addTo( tb );
actionTextUnderline->addTo( menu );
- actionTextUnderline->setToggleAction( TRUE );
+ actionTextUnderline->setToggleAction( true );
menu->insertSeparator();
TQActionGroup *grp = new TQActionGroup( this );
- grp->setExclusive( TRUE );
+ grp->setExclusive( true );
connect( grp, TQ_SIGNAL( selected( TQAction* ) ), this, TQ_SLOT( textAlign( TQAction* ) ) );
actionAlignLeft = new TQAction( tr( "Left" ), TQPixmap( "textdrawing/textleft.png" ), tr( "&Left" ), CTRL + Key_L, grp, "textLeft" );
actionAlignLeft->addTo( tb );
actionAlignLeft->addTo( menu );
- actionAlignLeft->setToggleAction( TRUE );
+ actionAlignLeft->setToggleAction( true );
actionAlignCenter = new TQAction( tr( "Center" ), TQPixmap( "textdrawing/textcenter.png" ), tr( "C&enter" ), CTRL + Key_M, grp, "textCenter" );
actionAlignCenter->addTo( tb );
actionAlignCenter->addTo( menu );
- actionAlignCenter->setToggleAction( TRUE );
+ actionAlignCenter->setToggleAction( true );
actionAlignRight = new TQAction( tr( "Right" ), TQPixmap( "textdrawing/textright.png" ), tr( "&Right" ), CTRL + Key_R, grp, "textRight" );
actionAlignRight->addTo( tb );
actionAlignRight->addTo( menu );
- actionAlignRight->setToggleAction( TRUE );
+ actionAlignRight->setToggleAction( true );
actionAlignJustify = new TQAction( tr( "Justify" ), TQPixmap( "textdrawing/textjustify.png" ), tr( "&Justify" ), CTRL + Key_J, grp, "textjustify" );
actionAlignJustify->addTo( tb );
actionAlignJustify->addTo( menu );
- actionAlignJustify->setToggleAction( TRUE );
+ actionAlignJustify->setToggleAction( true );
menu->insertSeparator();
@@ -273,7 +273,7 @@ void TextEdit::filePrint()
return;
#ifndef TQT_NO_PRINTER
TQPrinter printer;
- printer.setFullPage(TRUE);
+ printer.setFullPage(true);
TQPaintDeviceMetrics screen( this );
printer.setResolution( screen.logicalDpiY() );
if ( printer.setup( this ) ) {
@@ -302,7 +302,7 @@ void TextEdit::filePrint()
break;
printer.newPage();
page++;
- } while (TRUE);
+ } while (true);
}
#endif
}
@@ -458,13 +458,13 @@ void TextEdit::colorChanged( const TQColor &c )
void TextEdit::alignmentChanged( int a )
{
if ( ( a == AlignAuto ) || ( a & AlignLeft ))
- actionAlignLeft->setOn( TRUE );
+ actionAlignLeft->setOn( true );
else if ( ( a & AlignHCenter ) )
- actionAlignCenter->setOn( TRUE );
+ actionAlignCenter->setOn( true );
else if ( ( a & AlignRight ) )
- actionAlignRight->setOn( TRUE );
+ actionAlignRight->setOn( true );
else if ( ( a & AlignJustify ) )
- actionAlignJustify->setOn( TRUE );
+ actionAlignJustify->setOn( true );
}
void TextEdit::editorChanged( TQWidget * )