From 87d29563e3ccdeb7fea0197e262e667ef323ff9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jul 2024 14:56:09 +0900 Subject: Rename utility class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/porting.html | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'doc/html/porting.html') diff --git a/doc/html/porting.html b/doc/html/porting.html index 62bede808..a85e5dd49 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -174,7 +174,7 @@ the top of the file giving the error.
  • <ntqpainter.h>
  • <ntqpen.h>
  • <tqstringlist.h> -
  • <ntqregexp.h> +
  • <tqregexp.h>
  • <tqstrlist.h>
  • <tqstyle.h>
  • <tqvaluelist.h> @@ -361,7 +361,7 @@ 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 )
  • TQSimpleRichText::draw( TQPainter *p, int x, int y, const TQRegion & clipRegion, const TQColorGroup & cg, const TQBrush *paper = 0 ) const @@ -416,7 +416,7 @@ and TQVector have been renamed as per the following table. The original names are no longer avaialable.

    Old Name New Name New Header File -
    TQArray TQMemArray <ntqmemarray.h> +
    TQArray TQMemArray <tqmemarray.h>
    TQCollection TQPtrCollection <tqptrcollection.h>
    TQList TQPtrList <tqptrlist.h>
    TQListIterator TQPtrListIterator <tqptrlist.h> @@ -528,12 +528,12 @@ 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 happen by default anymore, providing a more consistent printing output. -

    TQRegExp +

    TQRegExp

    -

    The TQRegExp class has been rewritten to support many of the features of Perl -regular expressions. Both the regular expression syntax and the TQRegExp +

    The TQRegExp class has been rewritten to support many of the features of Perl +regular expressions. Both the regular expression syntax and the TQRegExp interface have been modified. -

    Be also aware that <ntqregexp.h> is no longer included +

    Be also aware that <tqregexp.h> is no longer included automatically when you include <tqstringlist.h>. See above for details.

    @@ -546,40 +546,40 @@ of these (actually, \\ in C++ strings), unless it is already there.

    Example: Old code like

    -    TQRegExp rx( "([0-9|]*\\)" );        // works in TQt 2.x
    +    TQRegExp rx( "([0-9|]*\\)" );        // works in TQt 2.x
     
    should be converted into
    -    TQRegExp rx( "\\([0-9\\|]*\\)" );      // works in TQt 2.x and 3.x
    +    TQRegExp rx( "\\([0-9\\|]*\\)" );      // works in TQt 2.x and 3.x
     
    (Within character classes, the backslash is not necessary in front of certain characters, e.g. |, but it doesn't hurt.)

    Wildcard patterns need no conversion. Here are two examples:

    -    TQRegExp wild( "(*.*)" );
    -    wild.setWildcard( TRUE );
    +    TQRegExp wild( "(*.*)" );
    +    wild.setWildcard( TRUE );
     
         // TRUE as third argument means wildcard
    -    TQRegExp wild( "(*.*)", FALSE, TRUE );
    +    TQRegExp wild( "(*.*)", FALSE, TRUE );
     
    -However, when they are used, make sure to use TQRegExp::exactMatch() -rather than the obsolete TQRegExp::match(). TQRegExp::match(), like +However, when they are used, make sure to use TQRegExp::exactMatch() +rather than the obsolete TQRegExp::match(). TQRegExp::match(), like TQRegExp::find(), tries to find a match somewhere in the target string, while TQRegExp::exactMatch() tries to match the whole target string. -

    TQRegExp::operator=() +

    TQRegExp::operator=()

    -

    This function has been replaced by TQRegExp::setPattern() in TQt 2.2. +

    This function has been replaced by TQRegExp::setPattern() in TQt 2.2. Old code such as

    -    TQRegExp rx( "alpha" );
    -    rx.setCaseSensitive( FALSE );
    -    rx.setWildcard( TRUE );
    +    TQRegExp rx( "alpha" );
    +    rx.setCaseSensitive( FALSE );
    +    rx.setWildcard( TRUE );
         rx = "beta";
     
    @@ -600,14 +600,14 @@ which is what one expects.

    The following function is now obsolete, as it has an unwieldy parameter list and was poorly named:

    -It will be removed in a future version of TQt. Its documentation explains how to replace it. +It will be removed in a future version of TQt. Its documentation explains how to replace it.

    TQRegExp::find()

    This function was removed, after a brief appearance in TQt 2.2. Its -name clashed with TQString::find(). Use TQRegExp::search() or TQString::find() instead. +name clashed with TQString::find(). Use TQRegExp::search() or TQString::find() instead.

    TQString::findRev() and TQString::contains()

    TQString::findRev()'s and TQString::contains()'s semantics have changed @@ -627,7 +627,7 @@ returns 1, not 13 or 14.

    This change affect very few existing programs.

    TQString::replace()

    -

    With TQt 1.0 and 2.0, a TQString is converted implicitly into a TQRegExp +

    With TQt 1.0 and 2.0, a TQString is converted implicitly into a TQRegExp as the first argument to TQString::replace():

         TQString text = fetch_it_from_somewhere();
    @@ -649,7 +649,7 @@ without breaking source compatibility.
     modal dialog instead.
     

    TQSortedList

    -

    The TQSortedList class is now obsolete. Consider using a TQDict, a TQMap +

    The TQSortedList class is now obsolete. Consider using a TQDict, a TQMap or a plain TQPtrList instead.

    TQTableView

    -- cgit v1.2.3