diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/porting3.doc | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/porting3.doc')
-rw-r--r-- | doc/porting3.doc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/porting3.doc b/doc/porting3.doc index b65cbc4f7..b4c361694 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -302,9 +302,9 @@ new code. \i TQListBoxItem::selected() const \i TQListView::removeItem( TQListViewItem *item ) \i TQListViewItem::removeItem( TQListViewItem *item ) -\i TQMainWindow::addToolBar( TQDockWindow *, Dock = DockTop, bool newLine = FALSE ) -\i TQMainWindow::addToolBar( TQDockWindow *, const TQString \& label, Dock = DockTop, bool newLine = FALSE ) -\i TQMainWindow::lineUpToolBars( bool keepNewLines = FALSE ) +\i TQMainWindow::addToolBar( TQDockWindow *, Dock = DockTop, bool newLine = false ) +\i TQMainWindow::addToolBar( TQDockWindow *, const TQString \& label, Dock = DockTop, bool newLine = false ) +\i TQMainWindow::lineUpToolBars( bool keepNewLines = false ) \i TQMainWindow::moveToolBar( TQDockWindow *, Dock = DockTop ) \i TQMainWindow::moveToolBar( TQDockWindow *, Dock, bool nl, int index, int extraOffset = -1 ) \i TQMainWindow::removeToolBar( TQDockWindow *) @@ -314,9 +314,9 @@ new code. \i TQMessageBox::message( const TQString \& caption, const TQString \& text, const TQString \& buttonText = TQString::null, TQWidget *parent = 0, const char *= 0 ) \i TQMessageBox::query( const TQString \& caption, const TQString \& text, const TQString \& yesButtonText = TQString::null, const TQString \& noButtonText = TQString::null, TQWidget *parent = 0, const char *= 0 ) \i TQMessageBox::standardIcon( Icon icon, GUIStyle style ) -\i TQRegExp::match( const TQString \& str, int index = 0, int *len = 0, bool indexIsStart = TRUE ) const +\i TQRegExp::match( const TQString \& str, int index = 0, int *len = 0, bool indexIsStart = true ) const \i TQScrollView::childIsVisible( TQWidget *child ) -\i TQScrollView::showChild( TQWidget *child, bool show = TRUE ) +\i TQScrollView::showChild( TQWidget *child, bool show = true ) \i TQSimpleRichText::draw( TQPainter *p, int x, int y, const TQRegion \& clipRegion, const TQColorGroup \& cg, const TQBrush *paper = 0 ) const \i TQString::ascii() const \i TQString::data() const @@ -329,7 +329,7 @@ new code. \i TQTabDialog::selected( const TQString \& tabLabel ) \i TQTabDialog::setTabEnabled( const char *name, bool enable ) \i TQTextStream::TQTextStream( TQString \& str, int filemode ) -\i TQToolBar::TQToolBar( const TQString \& label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 ) +\i TQToolBar::TQToolBar( const TQString \& label, TQMainWindow *, ToolBarDock = DockTop, bool newLine = false, const char *name = 0 ) \i TQToolTip::enabled() \i TQToolTip::setEnabled( bool enable ) \i TQTranslator::find( const char *context, const char *sourceText, const char *comment = 0 ) const @@ -507,7 +507,7 @@ 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. \section1 TQRegExp @@ -548,11 +548,11 @@ characters, e.g. <tt>|</tt>, but it doesn't hurt.) Wildcard patterns need no conversion. Here are two examples: \code TQRegExp wild( "(*.*)" ); - wild.setWildcard( TRUE ); + wild.setWildcard( true ); \endcode \code - // TRUE as third argument means wildcard - TQRegExp wild( "(*.*)", FALSE, TRUE ); + // true as third argument means wildcard + TQRegExp wild( "(*.*)", false, true ); \endcode However, when they are used, make sure to use TQRegExp::exactMatch() rather than the obsolete TQRegExp::match(). TQRegExp::match(), like @@ -566,8 +566,8 @@ This function has been replaced by \l TQRegExp::setPattern() in TQt 2.2. Old code such as \code TQRegExp rx( "alpha" ); - rx.setCaseSensitive( FALSE ); - rx.setWildcard( TRUE ); + rx.setCaseSensitive( false ); + rx.setWildcard( true ); rx = "beta"; \endcode still compiles with TQt 3, but produces a different result (the case sensitivity @@ -587,7 +587,7 @@ The following function is now obsolete, as it has an unwieldy parameter list and was poorly named: \list \i bool TQRegExp::match( const TQString \& str, int index = 0, - int * len = 0, bool indexIsStart = TRUE ) const + int * len = 0, bool indexIsStart = true ) const \endlist It will be removed in a future version of Qt. Its \link TQRegExp::match() documentation \endlink explains how to replace it. |