diff options
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 2c7529033..1ec7d3941 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -280,9 +280,9 @@ new code. \i QListBoxItem::selected() const \i QListView::removeItem( QListViewItem *item ) \i QListViewItem::removeItem( QListViewItem *item ) -\i QMainWindow::addToolBar( QDockWindow *, Dock = DockTop, bool newLine = FALSE ) -\i QMainWindow::addToolBar( QDockWindow *, const TQString \& label, Dock = DockTop, bool newLine = FALSE ) -\i QMainWindow::lineUpToolBars( bool keepNewLines = FALSE ) +\i QMainWindow::addToolBar( QDockWindow *, Dock = DockTop, bool newLine = false ) +\i QMainWindow::addToolBar( QDockWindow *, const TQString \& label, Dock = DockTop, bool newLine = false ) +\i QMainWindow::lineUpToolBars( bool keepNewLines = false ) \i QMainWindow::moveToolBar( QDockWindow *, Dock = DockTop ) \i QMainWindow::moveToolBar( QDockWindow *, Dock, bool nl, int index, int extraOffset = -1 ) \i QMainWindow::removeToolBar( QDockWindow *) @@ -293,9 +293,9 @@ new code. \i QMessageBox::query( const TQString \& caption, const TQString \& text, const TQString \& yesButtonText = TQString::null, const TQString \& noButtonText = TQString::null, TQWidget *parent = 0, const char *= 0 ) \i QMessageBox::standardIcon( Icon icon, GUIStyle style ) \i QPalette::normal() -\i QRegExp::match( const TQString \& str, int index = 0, int *len = 0, bool indexIsStart = TRUE ) const +\i QRegExp::match( const TQString \& str, int index = 0, int *len = 0, bool indexIsStart = true ) const \i QScrollView::childIsVisible( TQWidget *child ) -\i QScrollView::showChild( TQWidget *child, bool show = TRUE ) +\i QScrollView::showChild( TQWidget *child, bool show = true ) \i QSignal::block( bool b ) \i QSignal::isBlocked() const \i QSignal::parameter() const @@ -312,7 +312,7 @@ new code. \i QTabDialog::selected( const TQString \& tabLabel ) \i QTabDialog::setTabEnabled( const char *name, bool enable ) \i QTextStream::QTextStream( TQString \& str, int filemode ) -\i QToolBar::QToolBar( const TQString \& label, QMainWindow *, ToolBarDock = DockTop, bool newLine = FALSE, const char *name = 0 ) +\i QToolBar::QToolBar( const TQString \& label, QMainWindow *, ToolBarDock = DockTop, bool newLine = false, const char *name = 0 ) \i QToolButton::iconSet( bool on ) const \i QToolButton::offIconSet() const \i QToolButton::onIconSet() const @@ -497,7 +497,7 @@ to TQt 3.x. This compatibilty mode can be enabled by passing the QPrinter::Compatible flag to the QPrinter constructor. On X11, QPrinter 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 QRegExp @@ -538,11 +538,11 @@ characters, e.g. <tt>|</tt>, but it doesn't hurt.) Wildcard patterns need no conversion. Here are two examples: \code QRegExp wild( "(*.*)" ); - wild.setWildcard( TRUE ); + wild.setWildcard( true ); \endcode \code - // TRUE as third argument means wildcard - QRegExp wild( "(*.*)", FALSE, TRUE ); + // true as third argument means wildcard + QRegExp wild( "(*.*)", false, true ); \endcode However, when they are used, make sure to use QRegExp::exactMatch() rather than the obsolete QRegExp::match(). QRegExp::match(), like @@ -556,8 +556,8 @@ This function has been replaced by \l QRegExp::setPattern() in TQt 2.2. Old code such as \code QRegExp 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 @@ -577,7 +577,7 @@ The following function is now obsolete, as it has an unwieldy parameter list and was poorly named: \list \i bool QRegExp::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 QRegExp::match() documentation \endlink explains how to replace it. |
