diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /doc | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'doc')
65 files changed, 186 insertions, 186 deletions
diff --git a/doc/debug.doc b/doc/debug.doc index 91ec8af25..dde061e87 100644 --- a/doc/debug.doc +++ b/doc/debug.doc @@ -72,10 +72,10 @@ that can help with debugging. Qt includes three global functions for writing out warning and debug text. \list -\i \link ::qDebug() qDebug()\endlink for writing debug output for testing etc. -\i \link ::qWarning() qWarning()\endlink for writing warning output when program +\i \link ::tqDebug() tqDebug()\endlink for writing debug output for testing etc. +\i \link ::tqWarning() tqWarning()\endlink for writing warning output when program errors occur. -\i \link ::qFatal() qFatal()\endlink for writing fatal error messages +\i \link ::tqFatal() tqFatal()\endlink for writing fatal error messages and exiting. \endlist @@ -166,12 +166,12 @@ Example: { #if defined(QT_CHECK_NULL) if ( p == 0 ) - qWarning( "f: Null pointer not allowed" ); + tqWarning( "f: Null pointer not allowed" ); #endif #if defined(QT_CHECK_RANGE) if ( i < 0 ) - qWarning( "f: The index cannot be negative" ); + tqWarning( "f: The index cannot be negative" ); #endif } \endcode diff --git a/doc/html/canvas-example.html b/doc/html/canvas-example.html index c9a0b0c0d..ab874cfcd 100644 --- a/doc/html/canvas-example.html +++ b/doc/html/canvas-example.html @@ -867,7 +867,7 @@ void <a name="f653"></a>Main::addMesh() #ifndef QT_NO_PROGRESSDIALOG progress.<a href="ntqprogressdialog.html#setProgress">setProgress</a>( rows ); #endif - // qDebug( "%d nodes, %d edges", nodecount, EdgeItem::count() ); + // tqDebug( "%d nodes, %d edges", nodecount, EdgeItem::count() ); } void <a name="f654"></a>Main::addRectangle() diff --git a/doc/html/designer-manual-8.html b/doc/html/designer-manual-8.html index 74cde6610..a0f4643b1 100644 --- a/doc/html/designer-manual-8.html +++ b/doc/html/designer-manual-8.html @@ -77,7 +77,7 @@ bool createConnections() // create the default database connection TQSqlDatabase *defaultDB = TQSqlDatabase::addDatabase( "TQPSQL7" ); if ( ! defaultDB ) { - qWarning( "Failed to connect to driver" ); + tqWarning( "Failed to connect to driver" ); return FALSE; } defaultDB->setDatabaseName( "book" ); @@ -85,9 +85,9 @@ bool createConnections() defaultDB->setPassword( "bookpw" ); defaultDB->setHostName( "bookhost" ); if ( ! defaultDB->open() ) { - qWarning( "Failed to open books database: " + + tqWarning( "Failed to open books database: " + defaultDB->lastError().driverText() ); - qWarning( defaultDB->lastError().databaseText() ); + tqWarning( defaultDB->lastError().databaseText() ); return FALSE; } diff --git a/doc/html/functions.html b/doc/html/functions.html index 915f5a0db..45b63c180 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -2077,7 +2077,7 @@ packImage: <a href="ntqftp.html#put">TQFtp</a> <a href="ntqurloperator.html#put">TQUrlOperator</a><li>putPoints: <a href="ntqpointarray.html#putPoints">TQPointArray</a><li>putch: <a href="ntqfile.html#putch">TQFile</a> <a href="ntqiodevice.html#putch">TQIODevice</a> <a href="ntqsocket.html#putch">TQSocket</a><li><a name="q"></a> -qAddPostRoutine: +tqAddPostRoutine: <a href="ntqapplication.html#qAddPostRoutine">TQApplication</a><li>qAlpha: <a href="ntqcolor.html#qAlpha">TQColor</a><li>qBlue: <a href="ntqcolor.html#qBlue">TQColor</a><li>qChecksum: diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html index 07f5573f4..f0df8f7d2 100644 --- a/doc/html/ntqapplication.html +++ b/doc/html/ntqapplication.html @@ -1900,7 +1900,7 @@ similar to the C printf() function. is sent to the debugger. <p> <b>Warning:</b> The internal buffer is limited to 8196 bytes (including the '\0'-terminator). -<p> <b>Warning:</b> Passing (const char *)0 as argument to qDebug might lead +<p> <b>Warning:</b> Passing (const char *)0 as argument to tqDebug might lead to crashes on certain platforms due to the platforms printf implementation. <p> <p>See also <a href="#qWarning">qWarning</a>(), <a href="#qFatal">qFatal</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. @@ -1926,7 +1926,7 @@ similar to the C printf() function. is sent to the debugger. <p> <b>Warning:</b> The internal buffer is limited to 8196 bytes (including the '\0'-terminator). -<p> <b>Warning:</b> Passing (const char *)0 as argument to qFatal might lead +<p> <b>Warning:</b> Passing (const char *)0 as argument to tqFatal might lead to crashes on certain platforms due to the platforms printf implementation. <p> <p>See also <a href="#qDebug">qDebug</a>(), <a href="#qWarning">qWarning</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. @@ -2029,7 +2029,7 @@ similar to the C printf() function. is sent to the debugger. <p> <b>Warning:</b> The internal buffer is limited to 8196 bytes (including the '\0'-terminator). -<p> <b>Warning:</b> Passing (const char *)0 as argument to qWarning might lead +<p> <b>Warning:</b> Passing (const char *)0 as argument to tqWarning might lead to crashes on certain platforms due to the platforms printf implementation. <p> <p>See also <a href="#qDebug">qDebug</a>(), <a href="#qFatal">qFatal</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. diff --git a/doc/html/porting.html b/doc/html/porting.html index 39062649c..8c0a3e10a 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -390,8 +390,8 @@ new code. <li> <tt>#define strcpy qstrcpy</tt> <li> <tt>#define strcmp qstrcmp</tt> <li> <tt>#define strncmp tqstrncmp</tt> -<li> <tt>#define stricmp qstricmp</tt> -<li> <tt>#define strnicmp qstrnicmp</tt> +<li> <tt>#define stricmp tqstricmp</tt> +<li> <tt>#define strnicmp tqstrnicmp</tt> </ul> <p> See the changes-3.0.0 document for an explanation of why this had to be done. You might have been relying on the non-portable and unpredictable behavior diff --git a/doc/html/qcstring-h.html b/doc/html/qcstring-h.html index 3aeef7985..8d777fb60 100644 --- a/doc/html/qcstring-h.html +++ b/doc/html/qcstring-h.html @@ -89,9 +89,9 @@ body { background: #ffffff; color: black; } Safe and portable C string functions; extensions to standard string.h *****************************************************************************/ -Q_EXPORT void *qmemmove( void *dst, const void *src, uint len ); +Q_EXPORT void *tqmemmove( void *dst, const void *src, uint len ); -Q_EXPORT char *qstrdup( const char * ); +Q_EXPORT char *tqstrdup( const char * ); Q_EXPORT inline uint tqstrlen( const char *str ) { return str ? (uint)strlen(str) : 0u; } @@ -99,7 +99,7 @@ Q_EXPORT inline uint tqstrlen( const char *str ) Q_EXPORT inline char *qstrcpy( char *dst, const char *src ) { return src ? strcpy(dst, src) : 0; } -Q_EXPORT char *qstrncpy( char *dst, const char *src, uint len ); +Q_EXPORT char *tqstrncpy( char *dst, const char *src, uint len ); Q_EXPORT inline int qstrcmp( const char *str1, const char *str2 ) { @@ -113,9 +113,9 @@ Q_EXPORT inline int tqstrncmp( const char *str1, const char *str2, uint len ) : ( str1 ? 1 : ( str2 ? -1 : 0 ) ); } -Q_EXPORT int qstricmp( const char *, const char * ); +Q_EXPORT int tqstricmp( const char *, const char * ); -Q_EXPORT int qstrnicmp( const char *, const char *, uint len ); +Q_EXPORT int tqstrnicmp( const char *, const char *, uint len ); #ifndef QT_CLEAN_NAMESPACE Q_EXPORT inline uint cstrlen( const char *str ) @@ -132,9 +132,9 @@ Q_EXPORT inline int cstrncmp( const char *str1, const char *str2, uint len ) #endif -// qChecksum: Internet checksum +// tqChecksum: Internet checksum -Q_EXPORT Q_UINT16 qChecksum( const char *s, uint len ); +Q_EXPORT Q_UINT16 tqChecksum( const char *s, uint len ); /***************************************************************************** TQByteArray class @@ -156,10 +156,10 @@ typedef TQMemArray<char> TQByteArray; #endif #ifndef QT_NO_COMPRESS -Q_EXPORT TQByteArray qCompress( const uchar* data, int nbytes ); +Q_EXPORT TQByteArray tqCompress( const uchar* data, int nbytes ); Q_EXPORT TQByteArray tqUncompress( const uchar* data, int nbytes ); -Q_EXPORT inline TQByteArray qCompress( const TQByteArray& data) -{ return qCompress( (const uchar*)data.data(), data.size() ); } +Q_EXPORT inline TQByteArray tqCompress( const TQByteArray& data) +{ return tqCompress( (const uchar*)data.data(), data.size() ); } Q_EXPORT inline TQByteArray tqUncompress( const TQByteArray& data ) { return tqUncompress( (const uchar*)data.data(), data.size() ); } #endif diff --git a/doc/html/qgl-h.html b/doc/html/qgl-h.html index 6a5031369..048af28b8 100644 --- a/doc/html/qgl-h.html +++ b/doc/html/qgl-h.html @@ -92,7 +92,7 @@ body { background: #ffffff; color: black; } #define TQGL_VERSION 450 #define TQGL_VERSION_STR "4.5" TQM_EXPORT_OPENGL inline const char *qGLVersion() { - qObsolete( 0, "qGLVersion", "qVersion" ); + tqObsolete( 0, "qGLVersion", "qVersion" ); return TQGL_VERSION_STR; } #endif diff --git a/doc/html/qglobal-h.html b/doc/html/qglobal-h.html index 397f2e4ee..14ea0fe50 100644 --- a/doc/html/qglobal-h.html +++ b/doc/html/qglobal-h.html @@ -942,9 +942,9 @@ extern Q_EXPORT bool qt_winunicode; // System information // -Q_EXPORT const char *qVersion(); -Q_EXPORT bool qSysInfo( int *wordSize, bool *bigEndian ); -Q_EXPORT bool qSharedBuild(); +Q_EXPORT const char *tqVersion(); +Q_EXPORT bool tqSysInfo( int *wordSize, bool *bigEndian ); +Q_EXPORT bool tqSharedBuild(); #if defined(Q_OS_MAC) int qMacVersion(); #elif defined(Q_WS_WIN) @@ -1003,25 +1003,25 @@ Q_EXPORT int qWinVersion(); #endif -Q_EXPORT void qDebug( const char *, ... ) // print debug message +Q_EXPORT void tqDebug( const char *, ... ) // print debug message #if defined(Q_CC_GNU) && !defined(__INSURE__) __attribute__ ((format (printf, 1, 2))) #endif ; -Q_EXPORT void qWarning( const char *, ... ) // print warning message +Q_EXPORT void tqWarning( const char *, ... ) // print warning message #if defined(Q_CC_GNU) && !defined(__INSURE__) __attribute__ ((format (printf, 1, 2))) #endif ; -Q_EXPORT void qFatal( const char *, ... ) // print fatal message and exit +Q_EXPORT void tqFatal( const char *, ... ) // print fatal message and exit #if defined(Q_CC_GNU) __attribute__ ((format (printf, 1, 2))) #endif ; -Q_EXPORT void qSystemWarning( const char *, int code = -1 ); +Q_EXPORT void tqSystemWarning( const char *, int code = -1 ); #if !defined(QT_CLEAN_NAMESPACE) // compatibility with TQt 1 @@ -1049,9 +1049,9 @@ Q_EXPORT void fatal( const char *, ... ) // print fatal message and exit #if !defined(Q_ASSERT) # if defined(QT_CHECK_STATE) # if defined(QT_FATAL_ASSERT) -# define Q_ASSERT(x) ((x) ? (void)0 : qFatal("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__)) +# define Q_ASSERT(x) ((x) ? (void)0 : tqFatal("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__)) # else -# define Q_ASSERT(x) ((x) ? (void)0 : qWarning("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__)) +# define Q_ASSERT(x) ((x) ? (void)0 : tqWarning("ASSERT: \"%s\" in %s (%d)",#x,__FILE__,__LINE__)) # endif # else # define Q_ASSERT(x) @@ -1067,10 +1067,10 @@ Q_EXPORT void fatal( const char *, ... ) // print fatal message and exit #endif // QT_NO_COMPAT -Q_EXPORT bool qt_check_pointer( bool c, const char *, int ); +Q_EXPORT bool tqt_check_pointer( bool c, const char *, int ); #if defined(QT_CHECK_NULL) -# define TQ_CHECK_PTR(p) (qt_check_pointer((p)==0,__FILE__,__LINE__)) +# define TQ_CHECK_PTR(p) (tqt_check_pointer((p)==0,__FILE__,__LINE__)) #else # define TQ_CHECK_PTR(p) #endif @@ -1090,27 +1090,27 @@ Q_EXPORT TQtMsgHandler qInstallMsgHandler( TQtMsgHandler ); typedef TQtMsgHandler msg_handler; #endif // QT_NO_COMPAT -Q_EXPORT void qSuppressObsoleteWarnings( bool = TRUE ); +Q_EXPORT void tqSuppressObsoleteWarnings( bool = TRUE ); -Q_EXPORT void qObsolete( const char *obj, const char *oldfunc, +Q_EXPORT void tqObsolete( const char *obj, const char *oldfunc, const char *newfunc ); -Q_EXPORT void qObsolete( const char *obj, const char *oldfunc ); -Q_EXPORT void qObsolete( const char *message ); +Q_EXPORT void tqObsolete( const char *obj, const char *oldfunc ); +Q_EXPORT void tqObsolete( const char *message ); // // Install paths from configure // -Q_EXPORT const char *qInstallPath(); -Q_EXPORT const char *qInstallPathDocs(); -Q_EXPORT const char *qInstallPathHeaders(); -Q_EXPORT const char *qInstallPathLibs(); -Q_EXPORT const char *qInstallPathBins(); -Q_EXPORT const char *qInstallPathPlugins(); -Q_EXPORT const char *qInstallPathData(); -Q_EXPORT const char *qInstallPathTranslations(); -Q_EXPORT const char *qInstallPathSysconf(); +Q_EXPORT const char *tqInstallPath(); +Q_EXPORT const char *tqInstallPathDocs(); +Q_EXPORT const char *tqInstallPathHeaders(); +Q_EXPORT const char *tqInstallPathLibs(); +Q_EXPORT const char *tqInstallPathBins(); +Q_EXPORT const char *tqInstallPathPlugins(); +Q_EXPORT const char *tqInstallPathData(); +Q_EXPORT const char *tqInstallPathTranslations(); +Q_EXPORT const char *tqInstallPathSysconf(); #endif /* __cplusplus */ @@ -1125,7 +1125,7 @@ Q_EXPORT const char *qInstallPathSysconf(); #ifdef Q_FULL_TEMPLATE_INSTANTIATION # define Q_DUMMY_COMPARISON_OPERATOR(C) \ bool operator==( const C& ) const { \ - qWarning( #C"::operator==( const "#C"& ) got called." ); \ + tqWarning( #C"::operator==( const "#C"& ) got called." ); \ return FALSE; \ } #else diff --git a/doc/html/qheader-h.html b/doc/html/qheader-h.html index ee92c4a65..501dde05f 100644 --- a/doc/html/qheader-h.html +++ b/doc/html/qheader-h.html @@ -248,7 +248,7 @@ inline TQHeader::Orientation TQHeader::orientation() const inline void TQHeader::setTracking( bool enable ) { trackingIsOn = enable; } inline bool TQHeader::tracking() const { return trackingIsOn; } -extern Q_EXPORT bool qt_qheader_label_return_null_strings; // needed for professional edition +extern Q_EXPORT bool tqt_qheader_label_return_null_strings; // needed for professional edition #endif // QT_NO_HEADER diff --git a/doc/html/qmake-manual-4.html b/doc/html/qmake-manual-4.html index 990d60508..8fe09fd1a 100644 --- a/doc/html/qmake-manual-4.html +++ b/doc/html/qmake-manual-4.html @@ -135,7 +135,7 @@ body { background: #ffffff; color: black; } </pre> <p>Use <em>qmake</em> as before to generate a makefile. If you rename <em>main.cpp</em> temporarily, you will see the message and <em>qmake</em> will stop processing.</p> <h3><a name="6"></a>Checking for more than one condition</h3> -<p>Suppose you use Windows and you want to be able to see the qDebug() statements when you run your application on the command line. Unless you build your application with the console setting, you won't see the output. We can easily put <em>console</em> on the CONFIG line so that on Windows the makefile will have this setting. But let's say that we only want to add the CONFIG line if we are running on Windows <em>and</em> when <em>debug</em> is already on the CONFIG line. This requires using two nested scopes; just create one scope, then create the other inside that one. Put the settings to be processed inside the last scope, like this:</p> +<p>Suppose you use Windows and you want to be able to see the tqDebug() statements when you run your application on the command line. Unless you build your application with the console setting, you won't see the output. We can easily put <em>console</em> on the CONFIG line so that on Windows the makefile will have this setting. But let's say that we only want to add the CONFIG line if we are running on Windows <em>and</em> when <em>debug</em> is already on the CONFIG line. This requires using two nested scopes; just create one scope, then create the other inside that one. Put the settings to be processed inside the last scope, like this:</p> <pre> win32 { debug { diff --git a/doc/html/qmap-h.html b/doc/html/qmap-h.html index 2ff20da0d..d6e5319a3 100644 --- a/doc/html/qmap-h.html +++ b/doc/html/qmap-h.html @@ -612,7 +612,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate<Key,T>::Iterator TQMapPrivate&l #ifdef QT_CHECK_RANGE # if !defined( QT_NO_DEBUG ) && defined( QT_CHECK_MAP_RANGE ) -# define QT_CHECK_INVALID_MAP_ELEMENT if ( empty() ) qWarning( "TQMap: Warning invalid element" ) +# define QT_CHECK_INVALID_MAP_ELEMENT if ( empty() ) tqWarning( "TQMap: Warning invalid element" ) # define QT_CHECK_INVALID_MAP_ELEMENT_FATAL Q_ASSERT( !empty() ); # else # define QT_CHECK_INVALID_MAP_ELEMENT diff --git a/doc/html/qmessagebox-h.html b/doc/html/qmessagebox-h.html index c52826bd8..c014327e0 100644 --- a/doc/html/qmessagebox-h.html +++ b/doc/html/qmessagebox-h.html @@ -245,13 +245,13 @@ private: // Disabled copy constructor and operator= * } */ #define QT_REQUIRE_VERSION( argc, argv, str ) { TQString s=TQString::fromLatin1(str);\ -TQString sq=TQString::fromLatin1(qVersion()); if ( (sq.section('.',0,0).toInt()<<16)+\ +TQString sq=TQString::fromLatin1(tqVersion()); if ( (sq.section('.',0,0).toInt()<<16)+\ (sq.section('.',1,1).toInt()<<8)+sq.section('.',2,2).toInt()<(s.section('.',0,0).toInt()<<16)+\ (s.section('.',1,1).toInt()<<8)+s.section('.',2,2).toInt() ){if ( !tqApp){ int c=0; new \ TQApplication(argc,argv);} TQString s = TQApplication::tr("Executable '%1' requires TQt "\ "%2, found TQt %3.").arg(TQString::fromLatin1(tqAppName())).arg(TQString::fromLatin1(\ -str)).arg(TQString::fromLatin1(qVersion()) ); TQMessageBox::critical( 0, TQApplication::tr(\ -"Incompatible TQt Library Error" ), s, TQMessageBox::Abort,0 ); qFatal(s.ascii()); }} +str)).arg(TQString::fromLatin1(tqVersion()) ); TQMessageBox::critical( 0, TQApplication::tr(\ +"Incompatible TQt Library Error" ), s, TQMessageBox::Abort,0 ); tqFatal(s.ascii()); }} #endif // QT_NO_MESSAGEBOX diff --git a/doc/html/qstring-h.html b/doc/html/qstring-h.html index ae37a8427..dfa12ef0a 100644 --- a/doc/html/qstring-h.html +++ b/doc/html/qstring-h.html @@ -261,7 +261,7 @@ public: static bool networkOrdered() { int wordSize; bool bigEndian = FALSE; - qSysInfo( &wordSize, &bigEndian ); + tqSysInfo( &wordSize, &bigEndian ); return bigEndian; } diff --git a/doc/html/qstrlist-h.html b/doc/html/qstrlist-h.html index 49a3e7e09..88f998a87 100644 --- a/doc/html/qstrlist-h.html +++ b/doc/html/qstrlist-h.html @@ -100,7 +100,7 @@ public: TQStrList& operator=( const TQStrList & ); private: - TQPtrCollection::Item newItem( TQPtrCollection::Item d ) { return dc ? qstrdup( (const char*)d ) : d; } + TQPtrCollection::Item newItem( TQPtrCollection::Item d ) { return dc ? tqstrdup( (const char*)d ) : d; } void deleteItem( TQPtrCollection::Item d ) { if ( del_item ) delete[] (char*)d; } int compareItems( TQPtrCollection::Item s1, TQPtrCollection::Item s2 ) { return qstrcmp((const char*)s1, (const char*)s2); } @@ -121,7 +121,7 @@ public: ~TQStrIList() { clear(); } private: int compareItems( TQPtrCollection::Item s1, TQPtrCollection::Item s2 ) - { return qstricmp((const char*)s1, + { return tqstricmp((const char*)s1, (const char*)s2); } }; diff --git a/doc/html/qvaluelist-h.html b/doc/html/qvaluelist-h.html index 16d084b87..c88d0ca6b 100644 --- a/doc/html/qvaluelist-h.html +++ b/doc/html/qvaluelist-h.html @@ -431,7 +431,7 @@ Q_INLINE_TEMPLATES void TQValueListPrivate<T>::clear() #ifdef QT_CHECK_RANGE # if !defined( QT_NO_DEBUG ) && defined( QT_CHECK_VALUELIST_RANGE ) -# define QT_CHECK_INVALID_LIST_ELEMENT if ( empty() ) qWarning( "TQValueList: Warning invalid element" ) +# define QT_CHECK_INVALID_LIST_ELEMENT if ( empty() ) tqWarning( "TQValueList: Warning invalid element" ) # define QT_CHECK_INVALID_LIST_ELEMENT_FATAL Q_ASSERT( !empty() ); # else # define QT_CHECK_INVALID_LIST_ELEMENT diff --git a/doc/html/qwindowdefs-h.html b/doc/html/qwindowdefs-h.html index 75e2dea00..0a7f48282 100644 --- a/doc/html/qwindowdefs-h.html +++ b/doc/html/qwindowdefs-h.html @@ -183,12 +183,12 @@ typedef struct _XGC *GC; typedef struct _XRegion *Region; typedef unsigned long WId; -Q_EXPORT Display *qt_xdisplay(); -Q_EXPORT int qt_xscreen(); -Q_EXPORT WId qt_xrootwin(); // ### REMOVE 4.0 -Q_EXPORT WId qt_xrootwin( int scrn ); // ### 4.0 add default arg of -1 -Q_EXPORT GC qt_xget_readonly_gc( int scrn, bool monochrome ); -Q_EXPORT GC qt_xget_temp_gc( int scrn, bool monochrome ); +Q_EXPORT Display *tqt_xdisplay(); +Q_EXPORT int tqt_xscreen(); +Q_EXPORT WId tqt_xrootwin(); // ### REMOVE 4.0 +Q_EXPORT WId tqt_xrootwin( int scrn ); // ### 4.0 add default arg of -1 +Q_EXPORT GC tqt_xget_readonly_gc( int scrn, bool monochrome ); +Q_EXPORT GC tqt_xget_temp_gc( int scrn, bool monochrome ); Q_EXPORT const char *tqAppClass(); // get application class @@ -221,8 +221,8 @@ Q_EXPORT const char *tqAppName(); // get application name // Misc functions typedef void (*TQtCleanUpFunction)(); -Q_EXPORT void qAddPostRoutine( TQtCleanUpFunction ); -Q_EXPORT void qRemovePostRoutine( TQtCleanUpFunction ); +Q_EXPORT void tqAddPostRoutine( TQtCleanUpFunction ); +Q_EXPORT void tqRemovePostRoutine( TQtCleanUpFunction ); #if !defined(QT_CLEAN_NAMESPACE) // source compatibility with TQt 2.x diff --git a/doc/html/tutorial1-08.html b/doc/html/tutorial1-08.html index a98e8e301..4586ceab9 100644 --- a/doc/html/tutorial1-08.html +++ b/doc/html/tutorial1-08.html @@ -78,7 +78,7 @@ limit the possible range of <tt>minVal</tt> and <tt>maxVal</tt> to 0..99 to avoi overflow of the TQLCDNumber. (We could have allowed values down to -9 but chose not to.) If the arguments are illegal, we use TQt's <a href="ntqapplication.html#qWarning">qWarning</a>() function to issue a warning to the user and return -immediately. qWarning() is a printf-like function that by default +immediately. tqWarning() is a printf-like function that by default sends its output to <tt>stderr</tt>. If you want, you can install your own handler function using <a href="ntqapplication.html#qInstallMsgHandler">::qInstallMsgHandler</a>(). <p> <h3> <a href="t8-cannon-h.html">t8/cannon.h</a> diff --git a/doc/i18n.doc b/doc/i18n.doc index d10a4f309..77a0046b8 100644 --- a/doc/i18n.doc +++ b/doc/i18n.doc @@ -297,8 +297,8 @@ example: QString s1 = "%1 of %2 files copied. Copying: %3"; QString s2 = "Kopierer nu %3. Av totalt %2 filer er %1 kopiert."; - qDebug( s1.arg(5).arg(10).arg("somefile.txt").ascii() ); - qDebug( s2.arg(5).arg(10).arg("somefile.txt").ascii() ); + tqDebug( s1.arg(5).arg(10).arg("somefile.txt").ascii() ); + tqDebug( s2.arg(5).arg(10).arg("somefile.txt").ascii() ); \endcode produces the correct output in English and Norwegian: diff --git a/doc/mac.doc b/doc/mac.doc index 2447901b7..df68c717a 100644 --- a/doc/mac.doc +++ b/doc/mac.doc @@ -177,7 +177,7 @@ do this: kCFURLPOSIXPathStyle); const char *pathPtr = CFStringGetCStringPtr(macPath, CFStringGetSystemEncoding()); - qDebug("Path = %s", pathPtr); + tqDebug("Path = %s", pathPtr); CFRelease(pluginRef); CFRelease(macPath); \endcode diff --git a/doc/man/man3/qapplication.3qt b/doc/man/man3/qapplication.3qt index 7b67978e9..f1f1c49df 100644 --- a/doc/man/man3/qapplication.3qt +++ b/doc/man/man3/qapplication.3qt @@ -1696,7 +1696,7 @@ Example: .br .fi .PP -If \fCb\fR is zero, the Q_ASSERT statement will output the following message using the qWarning() function: +If \fCb\fR is zero, the Q_ASSERT statement will output the following message using the tqWarning() function: .PP .nf .br @@ -1704,7 +1704,7 @@ If \fCb\fR is zero, the Q_ASSERT statement will output the following message usi .br .fi .PP -See also qWarning() and Debugging. +See also tqWarning() and Debugging. .SH "void TQ_CHECK_PTR ( void * p )" If \fIp\fR is 0, prints a warning message containing the source code file name and line number, saying that the program ran out of memory. .PP @@ -1726,8 +1726,8 @@ Example: .br .fi .PP -See also qWarning() and Debugging. -.SH "void qAddPostRoutine ( QtCleanUpFunction p )" +See also tqWarning() and Debugging. +.SH "void tqAddPostRoutine ( QtCleanUpFunction p )" Adds a global routine that will be called from the QApplication destructor. This function is normally used to add cleanup routines for program-wide functionality. .PP The function given by \fIp\fR should take no arguments and return nothing, like this: @@ -1754,13 +1754,13 @@ The function given by \fIp\fR should take no arguments and return nothing, like .br global_ptr = new int[100]; // allocate data .br - qAddPostRoutine( cleanup_ptr ); // delete later + tqAddPostRoutine( cleanup_ptr ); // delete later .br } .br .fi .PP -Note that for an application- or module-wide cleanup, qAddPostRoutine() is often not suitable. People have a tendency to make such modules dynamically loaded, and then unload those modules long before the QApplication destructor is called, for example. +Note that for an application- or module-wide cleanup, tqAddPostRoutine() is often not suitable. People have a tendency to make such modules dynamically loaded, and then unload those modules long before the QApplication destructor is called, for example. .PP For modules and libraries, using a reference-counted initialization manager or Qt' parent-child delete mechanism may be better. Here is an example of a private class which uses the parent-child mechanism to call a cleanup function at the right time: .PP @@ -1803,7 +1803,7 @@ For modules and libraries, using a reference-counted initialization manager or Q .fi .PP By selecting the right parent widget/object, this can often be made to clean up the module's data at the exact right moment. -.SH "void qDebug ( const char * msg, ... )" +.SH "void tqDebug ( const char * msg, ... )" Prints a debug message \fImsg\fR, or calls the message handler (if it has been installed). .PP This function takes a format string and a list of arguments, similar to the C printf() function. @@ -1812,7 +1812,7 @@ Example: .PP .nf .br - qDebug( "my window handle = %x", myWidget->id() ); + tqDebug( "my window handle = %x", myWidget->id() ); .br .fi .PP @@ -1820,10 +1820,10 @@ Under X11, the text is printed to stderr. Under Windows, the text is sent to the .PP \fBWarning:\fR The internal buffer is limited to 8196 bytes (including the '\0'-terminator). .PP -\fBWarning:\fR Passing (const char *)0 as argument to qDebug might lead to crashes on certain platforms due to the platforms printf implementation. +\fBWarning:\fR Passing (const char *)0 as argument to tqDebug might lead to crashes on certain platforms due to the platforms printf implementation. .PP -See also qWarning(), qFatal(), qInstallMsgHandler(), and Debugging. -.SH "void qFatal ( const char * msg, ... )" +See also tqWarning(), tqFatal(), qInstallMsgHandler(), and Debugging. +.SH "void tqFatal ( const char * msg, ... )" Prints a fatal error message \fImsg\fR and exits, or calls the message handler (if it has been installed). .PP This function takes a format string and a list of arguments, similar to the C printf() function. @@ -1838,7 +1838,7 @@ Example: .br if ( b == 0 ) // program error .br - qFatal( "divide: cannot divide by zero" ); + tqFatal( "divide: cannot divide by zero" ); .br return a/b; .br @@ -1850,9 +1850,9 @@ Under X11, the text is printed to stderr. Under Windows, the text is sent to the .PP \fBWarning:\fR The internal buffer is limited to 8196 bytes (including the '\0'-terminator). .PP -\fBWarning:\fR Passing (const char *)0 as argument to qFatal might lead to crashes on certain platforms due to the platforms printf implementation. +\fBWarning:\fR Passing (const char *)0 as argument to tqFatal might lead to crashes on certain platforms due to the platforms printf implementation. .PP -See also qDebug(), qWarning(), qInstallMsgHandler(), and Debugging. +See also tqDebug(), tqWarning(), qInstallMsgHandler(), and Debugging. .SH "QtMsgHandler qInstallMsgHandler ( QtMsgHandler h )" Installs a Qt message handler \fIh\fR. Returns a pointer to the message handler previously defined. .PP @@ -1920,22 +1920,22 @@ Example: .br .fi .PP -See also qDebug(), qWarning(), qFatal(), and Debugging. -.SH "bool qSysInfo ( int * wordSize, bool * bigEndian )" +See also tqDebug(), tqWarning(), tqFatal(), and Debugging. +.SH "bool tqSysInfo ( int * wordSize, bool * bigEndian )" Obtains information about the system. .PP The system's word size in bits (typically 32) is returned in \fI*wordSize\fR. The \fI*bigEndian\fR is set to TRUE if this is a big-endian machine, or to FALSE if this is a little-endian machine. .PP -In debug mode, this function calls qFatal() with a message if the computer is truly weird (i.e. different endianness for 16 bit and 32 bit integers); in release mode it returns FALSE. -.SH "void qSystemWarning ( const char * msg, int code )" +In debug mode, this function calls tqFatal() with a message if the computer is truly weird (i.e. different endianness for 16 bit and 32 bit integers); in release mode it returns FALSE. +.SH "void tqSystemWarning ( const char * msg, int code )" Prints the message \fImsg\fR and uses \fIcode\fR to get a system specific error message. When \fIcode\fR is -1 (the default), the system's last error code will be used if possible. Use this method to handle failures in platform specific API calls. .PP This function does nothing when Qt is built with \fCQT_NO_DEBUG\fR defined. -.SH "const char * qVersion ()" +.SH "const char * tqVersion ()" Returns the Qt version number as a string, for example, "2.3.0" or" 3.0.5". .PP The \fCTQT_VERSION\fR define has the numeric value in the form: 0xmmiibb (m = major, i = minor, b = bugfix). For example, Qt 3.0.5's \fCTQT_VERSION\fR is 0x030005. -.SH "void qWarning ( const char * msg, ... )" +.SH "void tqWarning ( const char * msg, ... )" Prints a warning message \fImsg\fR, or calls the message handler (if it has been installed). .PP This function takes a format string and a list of arguments, similar to the C printf() function. @@ -1950,7 +1950,7 @@ Example: .br if ( c > 200 ) .br - qWarning( "f: bad argument, c == %d", c ); + tqWarning( "f: bad argument, c == %d", c ); .br } .br @@ -1960,9 +1960,9 @@ Under X11, the text is printed to stderr. Under Windows, the text is sent to the .PP \fBWarning:\fR The internal buffer is limited to 8196 bytes (including the '\0'-terminator). .PP -\fBWarning:\fR Passing (const char *)0 as argument to qWarning might lead to crashes on certain platforms due to the platforms printf implementation. +\fBWarning:\fR Passing (const char *)0 as argument to tqWarning might lead to crashes on certain platforms due to the platforms printf implementation. .PP -See also qDebug(), qFatal(), qInstallMsgHandler(), and Debugging. +See also tqDebug(), tqFatal(), qInstallMsgHandler(), and Debugging. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqapplication.html diff --git a/doc/man/man3/qasciicache.3qt b/doc/man/man3/qasciicache.3qt index fbfaa9163..0d05a0d95 100644 --- a/doc/man/man3/qasciicache.3qt +++ b/doc/man/man3/qasciicache.3qt @@ -151,7 +151,7 @@ See also maxCost() and totalCost(). .SH "uint QAsciiCache::size () const" Returns the size of the hash array used to implement the cache. This should be a bit bigger than count() is likely to be. .SH "void QAsciiCache::statistics () const" -A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using qDebug(). This function does nothing in the release library. +A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using tqDebug(). This function does nothing in the release library. .SH "type * QAsciiCache::take ( const char * k )" Takes the item associated with \fIk\fR out of the cache without deleting it and returns a pointer to the item taken out, or 0 if the key does not exist in the cache. .PP diff --git a/doc/man/man3/qasciidict.3qt b/doc/man/man3/qasciidict.3qt index 53b21f3ff..1298d4736 100644 --- a/doc/man/man3/qasciidict.3qt +++ b/doc/man/man3/qasciidict.3qt @@ -275,7 +275,7 @@ Returns the size of the internal hash array (as specified in the constructor). .PP See also count(). .SH "void QAsciiDict::statistics () const" -Debugging-only function that prints out the dictionary distribution using qDebug(). +Debugging-only function that prints out the dictionary distribution using tqDebug(). .SH "type * QAsciiDict::take ( const char * key )" Takes the item associated with \fIkey\fR out of the dictionary without deleting it (even if auto-deletion is enabled). .PP diff --git a/doc/man/man3/qbytearray.3qt b/doc/man/man3/qbytearray.3qt index 071b0ee79..030f5e2ed 100644 --- a/doc/man/man3/qbytearray.3qt +++ b/doc/man/man3/qbytearray.3qt @@ -53,11 +53,11 @@ Constructs an empty QByteArray. .SH "QByteArray::QByteArray ( int size )" Constructs a QByteArray of size \fIsize\fR. .SH RELATED FUNCTION DOCUMENTATION -.SH "QByteArray qCompress ( const QByteArray & data )" +.SH "QByteArray tqCompress ( const QByteArray & data )" Compresses the array \fIdata\fR and returns the compressed byte array using zlib. .PP See also tqUncompress(). -.SH "QByteArray qCompress ( const uchar * data, int nbytes )" +.SH "QByteArray tqCompress ( const uchar * data, int nbytes )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Compresses the array \fIdata\fR which is \fInbytes\fR long and returns the compressed byte array. @@ -66,7 +66,7 @@ Uncompresses the array \fIdata\fR and returns the uncompressed byte array. .PP Returns an empty QByteArray if the input data was corrupt. .PP -See also qCompress(). +See also tqCompress(). .SH "QByteArray tqUncompress ( const uchar * data, int nbytes )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP diff --git a/doc/man/man3/qcache.3qt b/doc/man/man3/qcache.3qt index 9b095088a..149ada958 100644 --- a/doc/man/man3/qcache.3qt +++ b/doc/man/man3/qcache.3qt @@ -175,7 +175,7 @@ See also maxCost() and totalCost(). .SH "uint QCache::size () const" Returns the size of the hash array used to implement the cache. This should be a bit bigger than count() is likely to be. .SH "void QCache::statistics () const" -A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using qDebug(). This function does nothing in the release library. +A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using tqDebug(). This function does nothing in the release library. .SH "type * QCache::take ( const QString & k )" Takes the item associated with \fIk\fR out of the cache without deleting it, and returns a pointer to the item taken out, or 0 if the key does not exist in the cache. .PP diff --git a/doc/man/man3/qcanvasview.3qt b/doc/man/man3/qcanvasview.3qt index bceebfec7..fb8580f4d 100644 --- a/doc/man/man3/qcanvasview.3qt +++ b/doc/man/man3/qcanvasview.3qt @@ -68,7 +68,7 @@ If you want users to be able to interact with a canvas view, subclass QCanvasVie .br if ( (*it)->rtti() == QCanvasRectangle::RTTI ) .br - qDebug("A QCanvasRectangle lies somewhere at this point"); + tqDebug("A QCanvasRectangle lies somewhere at this point"); .br } .br diff --git a/doc/man/man3/qclipboard.3qt b/doc/man/man3/qclipboard.3qt index 0a157703e..b8480ac87 100644 --- a/doc/man/man3/qclipboard.3qt +++ b/doc/man/man3/qclipboard.3qt @@ -125,7 +125,7 @@ Example: .br if ( !text.isNull() ) .br - qDebug( "The clipboard contains: " + text ); + tqDebug( "The clipboard contains: " + text ); .br .br // Copy text into the clipboard diff --git a/doc/man/man3/qcstring.3qt b/doc/man/man3/qcstring.3qt index 2b291cfb9..c6194e4fc 100644 --- a/doc/man/man3/qcstring.3qt +++ b/doc/man/man3/qcstring.3qt @@ -1041,7 +1041,7 @@ See also Note on character comparisons. Reads a string into \fIstr\fR from the stream \fIs\fR. .PP See also Format of the QDataStream operators. -.SH "void * qmemmove ( void * dst, const void * src, uint len )" +.SH "void * tqmemmove ( void * dst, const void * src, uint len )" This function is normally part of the C library. Qt implements memmove() for platforms that do not provide it. .PP memmove() copies \fIlen\fR bytes from \fIsrc\fR into \fIdst\fR. The data is copied correctly even if \fIsrc\fR and \fIdst\fR overlap. @@ -1054,18 +1054,18 @@ Special case I: Returns 0 if \fIstr1\fR and \fIstr2\fR are both 0. .PP Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both). .PP -See also tqstrncmp(), qstricmp(), qstrnicmp(), and Note on character comparisons. +See also tqstrncmp(), tqstricmp(), tqstrnicmp(), and Note on character comparisons. .SH "char * qstrcpy ( char * dst, const char * src )" A safe strcpy() function. .PP Copies all characters up to and including the '\0' from \fIsrc\fR into \fIdst\fR and returns a pointer to \fIdst\fR. -.SH "char * qstrdup ( const char * src )" +.SH "char * tqstrdup ( const char * src )" Returns a duplicate string. .PP Allocates space for a copy of \fIsrc\fR, copies it, and returns a pointer to the copy. If \fIsrc\fR is 0, it immediately returns 0. .PP The returned string must be deleted using \fCdelete[]\fR. -.SH "int qstricmp ( const char * str1, const char * str2 )" +.SH "int tqstricmp ( const char * str1, const char * str2 )" A safe stricmp() function. .PP Compares \fIstr1\fR and \fIstr2\fR ignoring the case. @@ -1076,7 +1076,7 @@ Special case I: Returns 0 if \fIstr1\fR and \fIstr2\fR are both 0. .PP Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both). .PP -See also qstrcmp(), tqstrncmp(), qstrnicmp(), and Note on character comparisons. +See also qstrcmp(), tqstrncmp(), tqstrnicmp(), and Note on character comparisons. .SH "uint tqstrlen ( const char * str )" A safe strlen function. .PP @@ -1092,14 +1092,14 @@ Special case I: Returns 0 if \fIstr1\fR and \fIstr2\fR are both 0. .PP Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both). .PP -See also qstrcmp(), qstricmp(), qstrnicmp(), and Note on character comparisons. -.SH "char * qstrncpy ( char * dst, const char * src, uint len )" +See also qstrcmp(), tqstricmp(), tqstrnicmp(), and Note on character comparisons. +.SH "char * tqstrncpy ( char * dst, const char * src, uint len )" A safe strncpy() function. .PP Copies at most \fIlen\fR bytes from \fIsrc\fR (stopping at \fIlen\fR or the terminating '\0' whichever comes first) into \fIdst\fR and returns a pointer to \fIdst\fR. Guarantees that \fIdst\fR is '\0'-terminated. If \fIsrc\fR or \fIdst\fR is 0, returns 0 immediately. .PP See also qstrcpy(). -.SH "int qstrnicmp ( const char * str1, const char * str2, uint len )" +.SH "int tqstrnicmp ( const char * str1, const char * str2, uint len )" A safe strnicmp() function. .PP Compares at most \fIlen\fR bytes of \fIstr1\fR and \fIstr2\fR ignoring the case. @@ -1110,7 +1110,7 @@ Special case I: Returns 0 if \fIstr1\fR and \fIstr2\fR are both 0. .PP Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both). .PP -See also qstrcmp(), tqstrncmp(), qstricmp(), and Note on character comparisons. +See also qstrcmp(), tqstrncmp(), tqstricmp(), and Note on character comparisons. .SH "SEE ALSO" .BR http://doc.trolltech.com/ntqcstring.html diff --git a/doc/man/man3/qdatetime.3qt b/doc/man/man3/qdatetime.3qt index abab91950..c2ecc145d 100644 --- a/doc/man/man3/qdatetime.3qt +++ b/doc/man/man3/qdatetime.3qt @@ -219,7 +219,7 @@ Example: .br QDateTime xmas( QDate(dt.date().year(),12,24), QTime(17,00) ); .br - qDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) ); + tqDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) ); .br .fi .PP diff --git a/doc/man/man3/qdict.3qt b/doc/man/man3/qdict.3qt index 57e8231bb..c8f9a4c05 100644 --- a/doc/man/man3/qdict.3qt +++ b/doc/man/man3/qdict.3qt @@ -332,7 +332,7 @@ Returns the size of the internal hash array (as specified in the constructor). .PP See also count(). .SH "void QDict::statistics () const" -Debugging-only function that prints out the dictionary distribution using qDebug(). +Debugging-only function that prints out the dictionary distribution using tqDebug(). .SH "type * QDict::take ( const QString & key )" Takes the item with \fIkey\fR out of the dictionary without deleting it (even if auto-deletion is enabled). .PP diff --git a/doc/man/man3/qdir.3qt b/doc/man/man3/qdir.3qt index bd8ccc31d..3ef6a07be 100644 --- a/doc/man/man3/qdir.3qt +++ b/doc/man/man3/qdir.3qt @@ -233,7 +233,7 @@ See if a directory exists. .br if ( !d.exists() ) .br - qWarning( "Cannot find the example directory" ); + tqWarning( "Cannot find the example directory" ); .br .fi .PP @@ -245,7 +245,7 @@ Traversing directories and reading a file. .br if ( !d.cd("tmp") ) { // "/tmp" .br - qWarning( "Cannot find the \\"/tmp\\" directory" ); + tqWarning( "Cannot find the \\"/tmp\\" directory" ); .br } else { .br @@ -253,7 +253,7 @@ Traversing directories and reading a file. .br if ( !f.open(IO_ReadWrite) ) .br - qWarning( "Cannot create the file %s", f.name() ); + tqWarning( "Cannot create the file %s", f.name() ); .br } .br @@ -615,7 +615,7 @@ Note: If the directory is a symbolic link to the root directory this function re .br if ( d.isRoot() ) .br - qWarning( "It is a root link" ); + tqWarning( "It is a root link" ); .br .fi .PP @@ -663,7 +663,7 @@ Example: .br if ( d1 != d2 ) .br - qDebug( "They differ" ); + tqDebug( "They differ" ); .br .fi .SH "QDir & QDir::operator= ( const QDir & d )" @@ -689,7 +689,7 @@ Example: .br if ( d1 == d2 ) .br - qDebug( "They're the same" ); + tqDebug( "They're the same" ); .br .fi .SH "QString QDir::operator[] ( int index ) const" diff --git a/doc/man/man3/qerrormessage.3qt b/doc/man/man3/qerrormessage.3qt index 182926dd9..4e5ce9e17 100644 --- a/doc/man/man3/qerrormessage.3qt +++ b/doc/man/man3/qerrormessage.3qt @@ -43,7 +43,7 @@ There are two ways to use this class: <ol type=1> .IP 1 For production applications. In this context the class can be used to display messages which you don't need the user to see more than once. To use QErrorMessage like this, you create the dialog in the usual way and call the message() slot, or connect signals to it. .IP 2 -For developers. In this context the static qtHandler() installs a message handler using qInstallMsgHandler() and creates a QErrorMessage that displays qDebug(), qWarning() and qFatal() messages. +For developers. In this context the static qtHandler() installs a message handler using qInstallMsgHandler() and creates a QErrorMessage that displays tqDebug(), tqWarning() and tqFatal() messages. .PP In both cases QErrorMessage will queue pending messages, and display them (or not) in order, as soon as the user presses Enter or clicks OK after seeing each message. .PP diff --git a/doc/man/man3/qfileinfo.3qt b/doc/man/man3/qfileinfo.3qt index 8fc19e0d5..5cf8195df 100644 --- a/doc/man/man3/qfileinfo.3qt +++ b/doc/man/man3/qfileinfo.3qt @@ -429,11 +429,11 @@ Example: .br if ( fi.permission( QFileInfo::WriteUser | QFileInfo::ReadGroup ) ) .br - qWarning( "I can change the file; my group can read the file" ); + tqWarning( "I can change the file; my group can read the file" ); .br if ( fi.permission( QFileInfo::WriteGroup | QFileInfo::WriteOther ) ) .br - qWarning( "The group or others can change the file" ); + tqWarning( "The group or others can change the file" ); .br .fi .PP diff --git a/doc/man/man3/qfontdatabase.3qt b/doc/man/man3/qfontdatabase.3qt index a13caf4b4..7582fa7d2 100644 --- a/doc/man/man3/qfontdatabase.3qt +++ b/doc/man/man3/qfontdatabase.3qt @@ -147,7 +147,7 @@ int main( int argc, char **argv ) .br QString family = *f; .br - qDebug( family ); + tqDebug( family ); .br QStringList styles = fdb.styles( family ); .br @@ -169,7 +169,7 @@ int main( int argc, char **argv ) .br dstyle = dstyle.left( dstyle.length() - 1 ) + ")"; .br - qDebug( dstyle ); + tqDebug( dstyle ); .br } .br diff --git a/doc/man/man3/qftp.3qt b/doc/man/man3/qftp.3qt index cf35b1388..a1b5c450b 100644 --- a/doc/man/man3/qftp.3qt +++ b/doc/man/man3/qftp.3qt @@ -156,7 +156,7 @@ If you want to use QFtp with the QNetworkProtocol interface, you do not use it d .br .fi .PP -This code will only work if the QFtp class is registered; to register the class, you must call qInitNetworkProtocols() before using a QUrlOperator with QFtp. +This code will only work if the QFtp class is registered; to register the class, you must call tqInitNetworkProtocols() before using a QUrlOperator with QFtp. .PP The rest of this descrption describes the direct interface to FTP. .PP diff --git a/doc/man/man3/qglformat.3qt b/doc/man/man3/qglformat.3qt index 30162f21f..6c61f0638 100644 --- a/doc/man/man3/qglformat.3qt +++ b/doc/man/man3/qglformat.3qt @@ -184,7 +184,7 @@ After the widget has been created, you can find out which of the requested featu .br if ( !w->format().hasOverlay() ) { .br - qFatal( "Cool hardware required" ); + tqFatal( "Cool hardware required" ); .br } .br @@ -239,11 +239,11 @@ This constructor makes it easy to specify a certain desired format in classes de .br if ( !format().stencil() ) .br - qWarning( "Could not get stencil buffer; results will be suboptimal" ); + tqWarning( "Could not get stencil buffer; results will be suboptimal" ); .br if ( !format().alphaChannel() ) .br - qWarning( "Could not get alpha channel; results will be suboptimal" ); + tqWarning( "Could not get alpha channel; results will be suboptimal" ); .br ... .br diff --git a/doc/man/man3/qguardedptr.3qt b/doc/man/man3/qguardedptr.3qt index 67de03a1c..11f362d4c 100644 --- a/doc/man/man3/qguardedptr.3qt +++ b/doc/man/man3/qguardedptr.3qt @@ -75,7 +75,7 @@ Example: .br else .br - qDebug("The label has been destroyed"); + tqDebug("The label has been destroyed"); .br .fi .PP diff --git a/doc/man/man3/qhttp.3qt b/doc/man/man3/qhttp.3qt index c73f499e1..0710e05e2 100644 --- a/doc/man/man3/qhttp.3qt +++ b/doc/man/man3/qhttp.3qt @@ -144,7 +144,7 @@ If you want to use QHttp with the QNetworkProtocol interface, you do not use it .br .fi .PP -This code will only work if the QHttp class is registered; to register the class, you must call qInitNetworkProtocols() before using a QUrlOperator with HTTP. +This code will only work if the QHttp class is registered; to register the class, you must call tqInitNetworkProtocols() before using a QUrlOperator with HTTP. .PP The QNetworkProtocol interface for HTTP only supports the operations operationGet() and operationPut(), i.e. QUrlOperator::get() and QUrlOperator::put(), if you use it with a QUrlOperator. .PP diff --git a/doc/man/man3/qintcache.3qt b/doc/man/man3/qintcache.3qt index a5ca1ef18..b12feaed0 100644 --- a/doc/man/man3/qintcache.3qt +++ b/doc/man/man3/qintcache.3qt @@ -145,7 +145,7 @@ See also maxCost() and totalCost(). .SH "uint QIntCache::size () const" Returns the size of the hash array used to implement the cache. This should be a bit larger than count() is likely to be. .SH "void QIntCache::statistics () const" -A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using qDebug(). This function does nothing in the release library. +A debug-only utility function. Prints out cache usage, hit/miss, and distribution information using tqDebug(). This function does nothing in the release library. .SH "type * QIntCache::take ( long k )" Takes the item associated with \fIk\fR out of the cache without deleting it, and returns a pointer to the item taken out or 0 if the key does not exist in the cache. .PP diff --git a/doc/man/man3/qintdict.3qt b/doc/man/man3/qintdict.3qt index 77bf86491..355002cad 100644 --- a/doc/man/man3/qintdict.3qt +++ b/doc/man/man3/qintdict.3qt @@ -271,7 +271,7 @@ Returns the size of the internal hash array (as specified in the constructor). .PP See also count(). .SH "void QIntDict::statistics () const" -Debugging-only function that prints out the dictionary distribution using qDebug(). +Debugging-only function that prints out the dictionary distribution using tqDebug(). .SH "type * QIntDict::take ( long key )" Takes the item associated with \fIkey\fR out of the dictionary without deleting it (even if auto-deletion is enabled). .PP diff --git a/doc/man/man3/qlocalfs.3qt b/doc/man/man3/qlocalfs.3qt index 5a1640087..13ffcab91 100644 --- a/doc/man/man3/qlocalfs.3qt +++ b/doc/man/man3/qlocalfs.3qt @@ -32,7 +32,7 @@ This class is derived from QNetworkProtocol. QLocalFs is not normally used direc .br .fi .PP -This code will only work if the QLocalFs class is registered; to register the class, you must call qInitNetworkProtocols() before using a QUrlOperator with QLocalFs. +This code will only work if the QLocalFs class is registered; to register the class, you must call tqInitNetworkProtocols() before using a QUrlOperator with QLocalFs. .PP If you really need to use QLocalFs directly, don't forget to set its QUrlOperator with setUrl(). .PP diff --git a/doc/man/man3/qmemarray.3qt b/doc/man/man3/qmemarray.3qt index 1b6e68735..5a26651d0 100644 --- a/doc/man/man3/qmemarray.3qt +++ b/doc/man/man3/qmemarray.3qt @@ -203,12 +203,12 @@ Example: .br for ( int i = 0; i < a.size(); i++ ) .br - qDebug( "%d: %d", i, a[i] ); + tqDebug( "%d: %d", i, a[i] ); .br .br - qDebug( "1 is found %d times", a.contains(1) ); + tqDebug( "1 is found %d times", a.contains(1) ); .br - qDebug( "5 is found at index %d", a.find(5) ); + tqDebug( "5 is found at index %d", a.find(5) ); .br .br return 0; @@ -540,7 +540,7 @@ See also Format of the QDataStream operators. Reads a byte array into \fIa\fR from the stream \fIs\fR and returns a reference to the stream. .PP See also Format of the QDataStream operators. -.SH "Q_UINT16 qChecksum ( const char * data, uint len )" +.SH "Q_UINT16 tqChecksum ( const char * data, uint len )" Returns the CRC-16 checksum of \fIlen\fR bytes starting at \fIdata\fR. .PP The checksum is independent of the byte order (endianness). diff --git a/doc/man/man3/qobject.3qt b/doc/man/man3/qobject.3qt index f83c0ab16..e1e5e7a1b 100644 --- a/doc/man/man3/qobject.3qt +++ b/doc/man/man3/qobject.3qt @@ -555,7 +555,7 @@ Example: .br QKeyEvent *k = (QKeyEvent*)ev; .br - qDebug( "Ate key press %d", k->key() ); + tqDebug( "Ate key press %d", k->key() ); .br return TRUE; .br @@ -668,7 +668,7 @@ Here's a \fCKeyPressEater\fR class that eats the key presses of its monitored ob .br QKeyEvent *k = (QKeyEvent *)e; .br - qDebug( "Ate key press %d", k->key() ); + tqDebug( "Ate key press %d", k->key() ); .br return TRUE; // eat event .br @@ -903,7 +903,7 @@ Example: .br { .br - qDebug( "timer event, id %d", e->timerId() ); + tqDebug( "timer event, id %d", e->timerId() ); .br } .br @@ -945,11 +945,11 @@ You can find an object by name (and type) using child(). You can find a set of o .PP The object name is set by the constructor or by the setName() function. The object name is not very useful in the current version of Qt, but will become increasingly important in the future. .PP -If the object does not have a name, the name() function returns" unnamed", so printf() (used in qDebug()) will not be asked to output a null pointer. If you want a null pointer to be returned for unnamed objects, you can call name( 0 ). +If the object does not have a name, the name() function returns" unnamed", so printf() (used in tqDebug()) will not be asked to output a null pointer. If you want a null pointer to be returned for unnamed objects, you can call name( 0 ). .PP .nf .br - qDebug( "MyClass::setPrecision(): (%s) invalid precision %f", + tqDebug( "MyClass::setPrecision(): (%s) invalid precision %f", .br name(), newPrecision ); .br diff --git a/doc/man/man3/qptrdict.3qt b/doc/man/man3/qptrdict.3qt index e4d220a95..4656bb15e 100644 --- a/doc/man/man3/qptrdict.3qt +++ b/doc/man/man3/qptrdict.3qt @@ -273,7 +273,7 @@ Returns the size of the internal hash table (as specified in the constructor). .PP See also count(). .SH "void QPtrDict::statistics () const" -Debugging-only function that prints out the dictionary distribution using qDebug(). +Debugging-only function that prints out the dictionary distribution using tqDebug(). .SH "type * QPtrDict::take ( void * key )" Takes the item associated with \fIkey\fR out of the dictionary without deleting it (even if auto-deletion is enabled). .PP diff --git a/doc/man/man3/qsqlcursor.3qt b/doc/man/man3/qsqlcursor.3qt index 4f73ae6a3..47df1a62d 100644 --- a/doc/man/man3/qsqlcursor.3qt +++ b/doc/man/man3/qsqlcursor.3qt @@ -193,7 +193,7 @@ For example: .br while ( cur.next() ) { .br - qDebug( cur.value( "id" ).toString() + ": " + + tqDebug( cur.value( "id" ).toString() + ": " + .br cur.value( "surname" ).toString() + " " + .br diff --git a/doc/man/man3/qsqlquery.3qt b/doc/man/man3/qsqlquery.3qt index b6c816cd3..07b22894e 100644 --- a/doc/man/man3/qsqlquery.3qt +++ b/doc/man/man3/qsqlquery.3qt @@ -358,7 +358,7 @@ The bound values can be examined in the following way: .br for ( it = vals.begin(); it != vals.end(); ++it ) .br - qWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() ); + tqWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() ); .br ... .br @@ -373,7 +373,7 @@ The bound values can be examined in the following way: .br for ( it = list.begin(); it != list.end(); ++it ) .br - qWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ ); + tqWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ ); .br ... .br diff --git a/doc/man/man3/qstring.3qt b/doc/man/man3/qstring.3qt index e93ca2523..1395b5fa5 100644 --- a/doc/man/man3/qstring.3qt +++ b/doc/man/man3/qstring.3qt @@ -770,7 +770,7 @@ The following example shows how we could create a 'status' string when processin .PP It is generally fine to use filenames and numbers as we have done in the example above. But note that using arg() to construct natural language sentences does not usually translate well into other languages because sentence structure and word order often differ between languages. .PP -If there is no place marker (\fC%1\fR, \fC%2\fR, etc.), a warning message (qWarning()) is output and the result is undefined. +If there is no place marker (\fC%1\fR, \fC%2\fR, etc.), a warning message (tqWarning()) is output and the result is undefined. .PP \fBWarning:\fR If any placeholder occurs more than once, the result is undefined. .SH "QString QString::arg ( long a, int fieldWidth = 0, int base = 10 ) const" diff --git a/doc/man/man3/qthread.3qt b/doc/man/man3/qthread.3qt index 01a83214d..69538e5c4 100644 --- a/doc/man/man3/qthread.3qt +++ b/doc/man/man3/qthread.3qt @@ -99,7 +99,7 @@ A QThread represents a separate thread of control within the program; it shares .br sleep( 1 ); .br - qDebug( "Ping!" ); + tqDebug( "Ping!" ); .br } .br diff --git a/doc/man/man3/qtime.3qt b/doc/man/man3/qtime.3qt index bae95d37f..b409e4089 100644 --- a/doc/man/man3/qtime.3qt +++ b/doc/man/man3/qtime.3qt @@ -293,7 +293,7 @@ Sets this time to the current time. This is practical for timing: .br some_lengthy_task(); .br - qDebug( "Time elapsed: %d ms", t.elapsed() ); + tqDebug( "Time elapsed: %d ms", t.elapsed() ); .br .fi .PP diff --git a/doc/man/man3/qurloperator.3qt b/doc/man/man3/qurloperator.3qt index c13a29c22..a38dc990f 100644 --- a/doc/man/man3/qurloperator.3qt +++ b/doc/man/man3/qurloperator.3qt @@ -149,7 +149,7 @@ If you want to be notified about success/failure, progress, etc., you can connec .PP The class uses the functionality of registered network protocols to perform these operations. Depending of the protocol of the URL, it uses an appropriate network protocol class for the operations. Each of the operation functions of QUrlOperator creates a QNetworkOperation object that describes the operation and puts it into the operation queue for the network protocol used. If no suitable protocol could be found (because no implementation of the necessary network protocol is registered), the URL operator emits errors. Not every protocol supports every operation, but error handling deals with this problem. .PP -To register the available network protocols, use the qInitNetworkProtocols() function. The protocols currently supported are: +To register the available network protocols, use the tqInitNetworkProtocols() function. The protocols currently supported are: .TP FTP, .TP @@ -348,7 +348,7 @@ See also copy(). .SH "void QUrlOperator::stop ()\fC [virtual]\fR" Stops the current network operation and removes all this QUrlOperator's waiting network operations. .SH RELATED FUNCTION DOCUMENTATION -.SH "void qInitNetworkProtocols ()" +.SH "void tqInitNetworkProtocols ()" This function registers the network protocols for FTP and HTTP. You must call this function before you use QUrlOperator for these protocols. .PP This function is declared in ntqnetwork.h. diff --git a/doc/man/man3/qvariant.3qt b/doc/man/man3/qvariant.3qt index 13103e0f9..cc1c0b38c 100644 --- a/doc/man/man3/qvariant.3qt +++ b/doc/man/man3/qvariant.3qt @@ -441,7 +441,7 @@ Here is some example code to demonstrate the use of QVariant: .br int z = v.toInt(); // z = 123 .br - qDebug("Type is %s", // prints "Type is int" + tqDebug("Type is %s", // prints "Type is int" .br v.typeName()); .br diff --git a/doc/network.doc b/doc/network.doc index f6b986d8e..a51a1eadd 100644 --- a/doc/network.doc +++ b/doc/network.doc @@ -148,9 +148,9 @@ void MyClass::slotOperationFinished( QNetworkOperation *op ) switch ( op->operation() ) { case QNetworkProtocol::OpMkDir: if ( op->state() == QNetworkProtocol::StFailed ) - qDebug( "Couldn't create directory %s", op->arg( 0 ).latin1() ); + tqDebug( "Couldn't create directory %s", op->arg( 0 ).latin1() ); else - qDebug( "Successfully created directory %s", op->arg( 0 ).latin1() ); + tqDebug( "Successfully created directory %s", op->arg( 0 ).latin1() ); break; // ... and so on } @@ -179,24 +179,24 @@ void MyClass::slotInsertEntries( const QValueList<QUrlInfo> &info, QNetworkOpera QValueList<QUrlInfo>::ConstIterator it = info.begin(); for ( ; it != info.end(); ++it ) { const QUrlInfo &inf = *it; - qDebug( "Name: %s, Size: %d, Last Modified: %s", + tqDebug( "Name: %s, Size: %d, Last Modified: %s", inf.name().latin1(), inf.size(), inf.lastModified().toString().latin1() ); } } void MyClass::slotStart( QNetworkOperation * ) { - qDebug( "Start reading '%s'", op.toString().latin1() ); + tqDebug( "Start reading '%s'", op.toString().latin1() ); } void MyClass::slotFinished( QNetworkOperation *operation ) { if ( operation->operation() == QNetworkProtocol::OpListChildren ) { if ( operation->state() == QNetworkProtocol::StFailed ) - qDebug( "Couldn't read '%s'! Following error occurred: %s", + tqDebug( "Couldn't read '%s'! Following error occurred: %s", op.toString().latin1(), operation->protocolDetail().latin1() ); else - qDebug( "Finished reading '%s'!", op.toString().latin1() ); + tqDebug( "Finished reading '%s'!", op.toString().latin1() ); } } diff --git a/doc/networking.doc b/doc/networking.doc index 99d3ceb2a..62b4a49af 100644 --- a/doc/networking.doc +++ b/doc/networking.doc @@ -68,7 +68,7 @@ must register them before you can use QUrlOperator. For example, put the following call in your \c main() function, after creating your QApplication object: \code - qInitNetworkProtocols(); + tqInitNetworkProtocols(); \endcode \section1 Network- and Protocol-Transparent Operations @@ -325,7 +325,7 @@ But, before we can use our new protocol, we have to register it first, so QUrlOp \skipto register \printline register -This registers Qip protocol and bonds it to prefix "qip". You can use qInitNetworkProtocols() which registers pre coded Ftp (for "ftp") and Http ("http") protocols. Local file system (QLocalFs) is always registered. +This registers Qip protocol and bonds it to prefix "qip". You can use tqInitNetworkProtocols() which registers pre coded Ftp (for "ftp") and Http ("http") protocols. Local file system (QLocalFs) is always registered. Client implementation (\c network/infoprotocol/infourlclient/client.cpp): diff --git a/doc/plugins-howto.doc b/doc/plugins-howto.doc index c9836686c..d006b1b06 100644 --- a/doc/plugins-howto.doc +++ b/doc/plugins-howto.doc @@ -83,7 +83,7 @@ run, Qt will first treat the application's executable directory as the Files\MyApp} and has a style plugin, Qt will look in \c{C:\Program Files\MyApp\styles}. (See \l{QApplication::applicationDirPath()} for how to find out where the application's executable is.) Qt will also -look in the directory given by \c{qInstallPathPlugins()}. If you want +look in the directory given by \c{tqInstallPathPlugins()}. If you want Qt to look in additional places you can add as many paths as you need with calls to \c{QApplication::addLibraryPath()}. And if you want to set your own path or paths you can use diff --git a/doc/porting3.doc b/doc/porting3.doc index e7e4d5193..38209ed77 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -348,8 +348,8 @@ Additionally, these preprocessor directives have been removed: \i \c {#define strcpy qstrcpy} \i \c {#define strcmp qstrcmp} \i \c {#define strncmp tqstrncmp} -\i \c {#define stricmp qstricmp} -\i \c {#define strnicmp qstrnicmp} +\i \c {#define stricmp tqstricmp} +\i \c {#define strnicmp tqstrnicmp} \endlist See the changes-3.0.0 document for an explanation of why this had to be done. diff --git a/doc/qasciicache.doc b/doc/qasciicache.doc index 76fa5da92..cb9738c35 100644 --- a/doc/qasciicache.doc +++ b/doc/qasciicache.doc @@ -97,7 +97,7 @@ \internal - Do not use. A QAsciiCache cannot be copied. Calls qFatal() in debug version. + Do not use. A QAsciiCache cannot be copied. Calls tqFatal() in debug version. */ @@ -139,7 +139,7 @@ \internal - Do not use. A QAsciiCache cannot be copied. Calls qFatal() in debug version. + Do not use. A QAsciiCache cannot be copied. Calls tqFatal() in debug version. */ /*! @@ -292,7 +292,7 @@ \fn void QAsciiCache::statistics() const A debug-only utility function. Prints out cache usage, hit/miss, - and distribution information using qDebug(). This function does + and distribution information using tqDebug(). This function does nothing in the release library. */ diff --git a/doc/qasciidict.doc b/doc/qasciidict.doc index 789eb1af1..a62a65433 100644 --- a/doc/qasciidict.doc +++ b/doc/qasciidict.doc @@ -308,7 +308,7 @@ \fn void QAsciiDict::statistics() const Debugging-only function that prints out the dictionary - distribution using qDebug(). + distribution using tqDebug(). */ /*! diff --git a/doc/qcache.doc b/doc/qcache.doc index af9421118..72af738d3 100644 --- a/doc/qcache.doc +++ b/doc/qcache.doc @@ -98,7 +98,7 @@ \internal - Do not use. A QCache cannot be copied. Calls qFatal() in debug version. + Do not use. A QCache cannot be copied. Calls tqFatal() in debug version. */ @@ -136,7 +136,7 @@ \internal - Do not use. A QCache cannot be copied. Calls qFatal() in debug version. + Do not use. A QCache cannot be copied. Calls tqFatal() in debug version. */ /*! @@ -285,7 +285,7 @@ \fn void QCache::statistics() const A debug-only utility function. Prints out cache usage, hit/miss, - and distribution information using qDebug(). This function does + and distribution information using tqDebug(). This function does nothing in the release library. */ diff --git a/doc/qdict.doc b/doc/qdict.doc index c06549909..5f1892cb7 100644 --- a/doc/qdict.doc +++ b/doc/qdict.doc @@ -383,7 +383,7 @@ \fn void QDict::statistics() const Debugging-only function that prints out the dictionary - distribution using qDebug(). + distribution using tqDebug(). */ /*! diff --git a/doc/qintcache.doc b/doc/qintcache.doc index acda6c7ec..d27a844bb 100644 --- a/doc/qintcache.doc +++ b/doc/qintcache.doc @@ -91,7 +91,7 @@ \internal - Do not use. A QCache cannot be copied. Calls qFatal() in debug version. + Do not use. A QCache cannot be copied. Calls tqFatal() in debug version. */ /*! @@ -125,7 +125,7 @@ \internal - Do not use. A QIntCache cannot be copied. Calls qFatal() in debug version. + Do not use. A QIntCache cannot be copied. Calls tqFatal() in debug version. */ /*! @@ -273,7 +273,7 @@ \fn void QIntCache::statistics() const A debug-only utility function. Prints out cache usage, hit/miss, - and distribution information using qDebug(). This function does + and distribution information using tqDebug(). This function does nothing in the release library. */ diff --git a/doc/qintdict.doc b/doc/qintdict.doc index 6272d913b..6c8c3b265 100644 --- a/doc/qintdict.doc +++ b/doc/qintdict.doc @@ -287,7 +287,7 @@ \fn void QIntDict::statistics() const Debugging-only function that prints out the dictionary - distribution using qDebug(). + distribution using tqDebug(). */ /*! diff --git a/doc/qmemarray.doc b/doc/qmemarray.doc index 79fe4bb87..59a707037 100644 --- a/doc/qmemarray.doc +++ b/doc/qmemarray.doc @@ -96,10 +96,10 @@ { QMemArray<int> a = fib( 6 ); // get first 6 fibonaccis for ( int i = 0; i < a.size(); i++ ) - qDebug( "%d: %d", i, a[i] ); + tqDebug( "%d: %d", i, a[i] ); - qDebug( "1 is found %d times", a.contains(1) ); - qDebug( "5 is found at index %d", a.find(5) ); + tqDebug( "1 is found %d times", a.contains(1) ); + tqDebug( "5 is found at index %d", a.find(5) ); return 0; } diff --git a/doc/qptrdict.doc b/doc/qptrdict.doc index 60cc83612..769ba617f 100644 --- a/doc/qptrdict.doc +++ b/doc/qptrdict.doc @@ -292,7 +292,7 @@ \fn void QPtrDict::statistics() const Debugging-only function that prints out the dictionary - distribution using qDebug(). + distribution using tqDebug(). */ /*! diff --git a/doc/sql.doc b/doc/sql.doc index 43ebfdec2..c33ac2efd 100644 --- a/doc/sql.doc +++ b/doc/sql.doc @@ -453,7 +453,7 @@ retrieve data from it. \quotefile sql/overview/retrieve1/main.cpp \skipto if ( \printline if ( -\printuntil qDebug +\printuntil tqDebug \printline \printline \printline @@ -644,7 +644,7 @@ setValue() to ensure that the value used is the one we want. \quotefile sql/overview/extract/main.cpp \skipto QSqlCursor \printline QSqlCursor -\printuntil qDebug +\printuntil tqDebug \printline \caption From \l sql/overview/extract/main.cpp @@ -668,7 +668,7 @@ in the \c{ORDER BY} clause. Now we iterate through each matching record (if any). We retrieve the contents of the id, forename and surname fields and pass them on to -some processing function, in this example a simple qDebug() call. +some processing function, in this example a simple tqDebug() call. \target Manipulating_Records \section2 Manipulating Records diff --git a/doc/tutorial.doc b/doc/tutorial.doc index 5ed29990f..feee705e6 100644 --- a/doc/tutorial.doc +++ b/doc/tutorial.doc @@ -916,8 +916,8 @@ have set up the QLCDNumber to always display two digits, we want to limit the possible range of \c minVal and \c maxVal to 0..99 to avoid overflow of the QLCDNumber. (We could have allowed values down to -9 but chose not to.) If the arguments are illegal, we use Qt's -qWarning() function to issue a warning to the user and return -immediately. qWarning() is a printf-like function that by default +tqWarning() function to issue a warning to the user and return +immediately. tqWarning() is a printf-like function that by default sends its output to \c stderr. If you want, you can install your own handler function using \l ::qInstallMsgHandler(). |