diff options
Diffstat (limited to 'examples/textedit/textedit.cpp')
-rw-r--r-- | examples/textedit/textedit.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/examples/textedit/textedit.cpp b/examples/textedit/textedit.cpp index afcb0a4e8..c01e2cd59 100644 --- a/examples/textedit/textedit.cpp +++ b/examples/textedit/textedit.cpp @@ -123,14 +123,14 @@ void TextEdit::setupTextActions() TQPopupMenu *menu = new TQPopupMenu( this ); menuBar()->insertItem( tr( "F&ormat" ), menu ); - 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 ) @@ -143,30 +143,30 @@ 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( TQPixmap::fromMimeSource( "textitalic.xpm" ), 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( TQPixmap::fromMimeSource( "textunder.xpm" ), 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 ); connect( grp, TQ_SIGNAL( selected( TQAction* ) ), this, TQ_SLOT( textAlign( TQAction* ) ) ); actionAlignLeft = new TQAction( TQPixmap::fromMimeSource( "textleft.xpm" ), tr( "&Left" ), CTRL + Key_L, grp, "textLeft" ); - actionAlignLeft->setToggleAction( TRUE ); + actionAlignLeft->setToggleAction( true ); actionAlignCenter = new TQAction( TQPixmap::fromMimeSource( "textcenter.xpm" ), tr( "C&enter" ), CTRL + Key_E, grp, "textCenter" ); - actionAlignCenter->setToggleAction( TRUE ); + actionAlignCenter->setToggleAction( true ); actionAlignRight = new TQAction( TQPixmap::fromMimeSource( "textright.xpm" ), tr( "&Right" ), CTRL + Key_R, grp, "textRight" ); - actionAlignRight->setToggleAction( TRUE ); + actionAlignRight->setToggleAction( true ); actionAlignJustify = new TQAction( TQPixmap::fromMimeSource( "textjustify.xpm" ), tr( "&Justify" ), CTRL + Key_J, grp, "textjustify" ); - actionAlignJustify->setToggleAction( TRUE ); + actionAlignJustify->setToggleAction( true ); grp->addTo( tb ); grp->addTo( menu ); @@ -271,7 +271,7 @@ void TextEdit::filePrint() return; #ifndef TQT_NO_PRINTER TQPrinter printer( TQPrinter::HighResolution ); - printer.setFullPage(TRUE); + printer.setFullPage(true); if ( printer.setup( this ) ) { TQPainter p( &printer ); // Check that there is a valid device to print to. @@ -301,7 +301,7 @@ void TextEdit::filePrint() break; printer.newPage(); page++; - } while (TRUE); + } while (true); } #endif } @@ -436,13 +436,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 * ) |