From 397b7afa8e3f32268c4454bf4783ac2a5a799658 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 15 Oct 2024 13:05:33 +0900 Subject: Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/debug.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/debug.html') diff --git a/doc/html/debug.html b/doc/html/debug.html index 5d4aa007f..d8e43ae20 100644 --- a/doc/html/debug.html +++ b/doc/html/debug.html @@ -58,16 +58,16 @@ option is only valid for the X11 version of TQt.

TQt includes three global functions for writing out warning and debug text.

The TQt implementation of these functions prints the text to the stderr output under Unix/X11 and to the debugger under Windows. You can take over these functions by installing a message handler; -qInstallMsgHandler(). +qInstallMsgHandler().

The debugging functions TQObject::dumpObjectTree() and TQObject::dumpObjectInfo() are often useful when an application looks or acts strangely. More useful if you use object names than not, but often useful even without names. @@ -77,10 +77,10 @@ often useful even without names. #defines.

Two important macros are:

@@ -88,9 +88,9 @@ Writes the warning "In file file.cpp, line 234: Out of memory" if p is
   char *alloc( int size )
   {
-      Q_ASSERT( size > 0 );
+      Q_ASSERT( size > 0 );
       char *p = new char[size];
-      TQ_CHECK_PTR( p );
+      TQ_CHECK_PTR( p );
       return p;
   }
 
@@ -107,7 +107,7 @@ TQ_CHECK_PTR: char *alloc( int size ) { char *p; - TQ_CHECK_PTR( p = new char[size] ); // WRONG! + TQ_CHECK_PTR( p = new char[size] ); // WRONG! return p; } @@ -140,12 +140,12 @@ define TQT_NO_CHECK. { #if defined(QT_CHECK_NULL) if ( p == 0 ) - tqWarning( "f: Null pointer not allowed" ); + tqWarning( "f: Null pointer not allowed" ); #endif #if defined(QT_CHECK_RANGE) if ( i < 0 ) - tqWarning( "f: The index cannot be negative" ); + tqWarning( "f: The index cannot be negative" ); #endif } -- cgit v1.2.1