From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/porting.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc/html/porting.html') diff --git a/doc/html/porting.html b/doc/html/porting.html index a9b0bbb56..332628e26 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -348,9 +348,9 @@ new code.
  • TQListBoxItem::selected() const
  • TQListView::removeItem( TQListViewItem *item )
  • TQListViewItem::removeItem( TQListViewItem *item ) -
  • TQMainWindow::addToolBar( TQDockWindow *, Dock = DockTop, bool newLine = FALSE ) -
  • TQMainWindow::addToolBar( TQDockWindow *, const TQString & label, Dock = DockTop, bool newLine = FALSE ) -
  • TQMainWindow::lineUpToolBars( bool keepNewLines = FALSE ) +
  • TQMainWindow::addToolBar( TQDockWindow *, Dock = DockTop, bool newLine = false ) +
  • TQMainWindow::addToolBar( TQDockWindow *, const TQString & label, Dock = DockTop, bool newLine = false ) +
  • TQMainWindow::lineUpToolBars( bool keepNewLines = false )
  • TQMainWindow::moveToolBar( TQDockWindow *, Dock = DockTop )
  • TQMainWindow::moveToolBar( TQDockWindow *, Dock, bool nl, int index, int extraOffset = -1 )
  • TQMainWindow::removeToolBar( TQDockWindow *) @@ -360,9 +360,9 @@ new code.
  • TQMessageBox::message( const TQString & caption, const TQString & text, const TQString & buttonText = TQString::null, TQWidget *parent = 0, const char *= 0 )
  • TQMessageBox::query( const TQString & caption, const TQString & text, const TQString & yesButtonText = TQString::null, const TQString & noButtonText = TQString::null, TQWidget *parent = 0, const char *= 0 )
  • TQMessageBox::standardIcon( Icon icon, GUIStyle style ) -
  • TQRegExp::match( const TQString & str, int index = 0, int *len = 0, bool indexIsStart = TRUE ) const +
  • TQRegExp::match( const TQString & str, int index = 0, int *len = 0, bool indexIsStart = true ) const
  • TQScrollView::childIsVisible( TQWidget *child ) -
  • TQScrollView::showChild( TQWidget *child, bool show = TRUE ) +
  • TQScrollView::showChild( TQWidget *child, bool show = true )
  • TQSimpleRichText::draw( TQPainter *p, int x, int y, const TQRegion & clipRegion, const TQColorGroup & cg, const TQBrush *paper = 0 ) const
  • TQString::ascii() const
  • TQString::data() const @@ -375,7 +375,7 @@ new code.
  • TQTabDialog::selected( const TQString & tabLabel )
  • TQTabDialog::setTabEnabled( const char *name, bool enable )
  • TQTextStream::TQTextStream( TQString & str, int filemode ) -
  • TQToolBar::TQToolBar( const TQString & label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 ) +
  • TQToolBar::TQToolBar( const TQString & label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = false, const char *name = 0 )
  • TQToolTip::enabled()
  • TQToolTip::setEnabled( bool enable )
  • TQTranslator::find( const char *context, const char *sourceText, const char *comment = 0 ) const @@ -524,7 +524,7 @@ added that forces the old behaviour, to ease porting from TQt 2.x to TQt 3.x. This compatibilty mode can be enabled by passing the TQPrinter::Compatible flag to the TQPrinter constructor.

    On X11, TQPrinter used to generate encapsulated postscript when -fullPage() was TRUE and only one page was printed. This does not +fullPage() was true and only one page was printed. This does not happen by default anymore, providing a more consistent printing output.

    TQRegExp

    @@ -557,12 +557,12 @@ characters, e.g. |, but it doesn't hurt.)

    Wildcard patterns need no conversion. Here are two examples:

         TQRegExp wild( "(*.*)" );
    -    wild.setWildcard( TRUE );
    +    wild.setWildcard( true );
     
    -    // TRUE as third argument means wildcard
    -    TQRegExp wild( "(*.*)", FALSE, TRUE );
    +    // true as third argument means wildcard
    +    TQRegExp wild( "(*.*)", false, true );
     
    However, when they are used, make sure to use TQRegExp::exactMatch() @@ -576,8 +576,8 @@ string. Old code such as
         TQRegExp rx( "alpha" );
    -    rx.setCaseSensitive( FALSE );
    -    rx.setWildcard( TRUE );
    +    rx.setCaseSensitive( false );
    +    rx.setWildcard( true );
         rx = "beta";
     
    @@ -599,7 +599,7 @@ which is what one expects. parameter list and was poorly named:
    • bool TQRegExp::match( const TQString & str, int index = 0, -int * len = 0, bool indexIsStart = TRUE ) const +int * len = 0, bool indexIsStart = true ) const
    It will be removed in a future version of TQt. Its documentation explains how to replace it.

    TQRegExp::find() -- cgit v1.2.3