summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-28 22:31:39 -0600
committerTimothy Pearson <[email protected]>2012-02-28 22:31:39 -0600
commit41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch)
tree6d4d5407c000add30aa78630e009c0e5d633e440 /src/tools
parent1740cd279522c060e738bbbffacab83355d2b794 (diff)
downloadtqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz
tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip
Automated conversion from qt3
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/ntqcstring.h20
-rw-r--r--src/tools/ntqglobal.h50
-rw-r--r--src/tools/ntqmap.h2
-rw-r--r--src/tools/ntqstring.h2
-rw-r--r--src/tools/ntqstrlist.h4
-rw-r--r--src/tools/ntqstrvec.h4
-rw-r--r--src/tools/ntqvaluelist.h2
-rw-r--r--src/tools/qbitarray.cpp10
-rw-r--r--src/tools/qbuffer.cpp42
-rw-r--r--src/tools/qcomlibrary.cpp24
-rw-r--r--src/tools/qcomponentfactory.cpp2
-rw-r--r--src/tools/qcstring.cpp54
-rw-r--r--src/tools/qdatastream.cpp8
-rw-r--r--src/tools/qdatetime.cpp28
-rw-r--r--src/tools/qdir.cpp14
-rw-r--r--src/tools/qdir_unix.cpp12
-rw-r--r--src/tools/qfile.cpp20
-rw-r--r--src/tools/qfile_unix.cpp30
-rw-r--r--src/tools/qfileinfo_unix.cpp6
-rw-r--r--src/tools/qgarray.cpp16
-rw-r--r--src/tools/qgcache.cpp28
-rw-r--r--src/tools/qgdict.cpp46
-rw-r--r--src/tools/qglist.cpp8
-rw-r--r--src/tools/qglobal.cpp92
-rw-r--r--src/tools/qgpluginmanager.cpp4
-rw-r--r--src/tools/qgvector.cpp18
-rw-r--r--src/tools/qiodevice.cpp10
-rw-r--r--src/tools/qlibrary.cpp4
-rw-r--r--src/tools/qlibrary_unix.cpp12
-rw-r--r--src/tools/qlocale.cpp4
-rw-r--r--src/tools/qmutex_unix.cpp26
-rw-r--r--src/tools/qmutexpool.cpp2
-rw-r--r--src/tools/qmutexpool_p.h2
-rw-r--r--src/tools/qregexp.cpp52
-rw-r--r--src/tools/qsemaphore.cpp4
-rw-r--r--src/tools/qsettings.cpp68
-rw-r--r--src/tools/qstring.cpp30
-rw-r--r--src/tools/qtextstream.cpp38
-rw-r--r--src/tools/qthreadstorage_unix.cpp14
-rw-r--r--src/tools/qucom.cpp2
-rw-r--r--src/tools/qwaitcondition_unix.cpp14
41 files changed, 414 insertions, 414 deletions
diff --git a/src/tools/ntqcstring.h b/src/tools/ntqcstring.h
index 18837ad34..7c60c1f44 100644
--- a/src/tools/ntqcstring.h
+++ b/src/tools/ntqcstring.h
@@ -53,9 +53,9 @@
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; }
@@ -63,7 +63,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 )
{
@@ -77,9 +77,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 )
@@ -96,9 +96,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
@@ -120,10 +120,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/src/tools/ntqglobal.h b/src/tools/ntqglobal.h
index 385156f0b..b2a6413a3 100644
--- a/src/tools/ntqglobal.h
+++ b/src/tools/ntqglobal.h
@@ -914,9 +914,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)
@@ -975,25 +975,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
@@ -1021,9 +1021,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)
@@ -1039,10 +1039,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
@@ -1062,27 +1062,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 */
@@ -1097,7 +1097,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/src/tools/ntqmap.h b/src/tools/ntqmap.h
index 7c0d375cf..02dd289ca 100644
--- a/src/tools/ntqmap.h
+++ b/src/tools/ntqmap.h
@@ -577,7 +577,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate<Key,T>::Iterator TQMapPrivate<Key,T>:
#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/src/tools/ntqstring.h b/src/tools/ntqstring.h
index 04b319aeb..54fb170a2 100644
--- a/src/tools/ntqstring.h
+++ b/src/tools/ntqstring.h
@@ -225,7 +225,7 @@ public:
static bool networkOrdered() {
int wordSize;
bool bigEndian = FALSE;
- qSysInfo( &wordSize, &bigEndian );
+ tqSysInfo( &wordSize, &bigEndian );
return bigEndian;
}
diff --git a/src/tools/ntqstrlist.h b/src/tools/ntqstrlist.h
index 67d88048e..1f346ad5d 100644
--- a/src/tools/ntqstrlist.h
+++ b/src/tools/ntqstrlist.h
@@ -64,7 +64,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); }
@@ -85,7 +85,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/src/tools/ntqstrvec.h b/src/tools/ntqstrvec.h
index 8eb7afd8b..f69f6273b 100644
--- a/src/tools/ntqstrvec.h
+++ b/src/tools/ntqstrvec.h
@@ -54,7 +54,7 @@ public:
TQStrVec( uint size, bool deepc = TRUE ) : TQPtrVector<char>(size) {dc=deepc;}
~TQStrVec() { clear(); }
private:
- Item newItem( Item d ) { return dc ? qstrdup( (const char*)d ) : d; }
+ Item newItem( Item d ) { return dc ? tqstrdup( (const char*)d ) : d; }
void deleteItem( Item d ) { if ( dc ) delete[] (char*)d; }
int compareItems( Item s1, Item s2 )
{ return qstrcmp((const char*)s1,
@@ -77,7 +77,7 @@ public:
~TQStrIVec() { clear(); }
private:
int compareItems( Item s1, Item s2 )
- { return qstricmp((const char*)s1,
+ { return tqstricmp((const char*)s1,
(const char*)s2); }
};
diff --git a/src/tools/ntqvaluelist.h b/src/tools/ntqvaluelist.h
index 411c2dd75..91a437a98 100644
--- a/src/tools/ntqvaluelist.h
+++ b/src/tools/ntqvaluelist.h
@@ -396,7 +396,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/src/tools/qbitarray.cpp b/src/tools/qbitarray.cpp
index a374cc6ca..49074ad93 100644
--- a/src/tools/qbitarray.cpp
+++ b/src/tools/qbitarray.cpp
@@ -296,7 +296,7 @@ bool TQBitArray::testBit( uint index ) const
{
#if defined(QT_CHECK_RANGE)
if ( index >= size() ) {
- qWarning( "TQBitArray::testBit: Index %d out of range", index );
+ tqWarning( "TQBitArray::testBit: Index %d out of range", index );
return FALSE;
}
#endif
@@ -315,7 +315,7 @@ void TQBitArray::setBit( uint index )
{
#if defined(QT_CHECK_RANGE)
if ( index >= size() ) {
- qWarning( "TQBitArray::setBit: Index %d out of range", index );
+ tqWarning( "TQBitArray::setBit: Index %d out of range", index );
return;
}
#endif
@@ -348,7 +348,7 @@ void TQBitArray::clearBit( uint index )
{
#if defined(QT_CHECK_RANGE)
if ( index >= size() ) {
- qWarning( "TQBitArray::clearBit: Index %d out of range", index );
+ tqWarning( "TQBitArray::clearBit: Index %d out of range", index );
return;
}
#endif
@@ -368,7 +368,7 @@ bool TQBitArray::toggleBit( uint index )
{
#if defined(QT_CHECK_RANGE)
if ( index >= size() ) {
- qWarning( "TQBitArray::toggleBit: Index %d out of range", index );
+ tqWarning( "TQBitArray::toggleBit: Index %d out of range", index );
return FALSE;
}
#endif
@@ -653,7 +653,7 @@ TQDataStream &operator>>( TQDataStream &s, TQBitArray &a )
s >> len; // read size of array
if ( !a.resize( (uint)len ) ) { // resize array
#if defined(QT_CHECK_NULL)
- qWarning( "TQDataStream: Not enough memory to read TQBitArray" );
+ tqWarning( "TQDataStream: Not enough memory to read TQBitArray" );
#endif
len = 0;
}
diff --git a/src/tools/qbuffer.cpp b/src/tools/qbuffer.cpp
index 75bb35da7..342309808 100644
--- a/src/tools/qbuffer.cpp
+++ b/src/tools/qbuffer.cpp
@@ -150,7 +150,7 @@ bool TQBuffer::setBuffer( TQByteArray buf )
{
if ( isOpen() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQBuffer::setBuffer: Buffer is open" );
+ tqWarning( "TQBuffer::setBuffer: Buffer is open" );
#endif
return FALSE;
}
@@ -193,7 +193,7 @@ bool TQBuffer::open( int m )
{
if ( isOpen() ) { // buffer already open
#if defined(QT_CHECK_STATE)
- qWarning( "TQBuffer::open: Buffer already open" );
+ tqWarning( "TQBuffer::open: Buffer already open" );
#endif
return FALSE;
}
@@ -262,16 +262,16 @@ bool TQBuffer::at( Offset pos )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "TQBuffer::at: Buffer is not open" );
+ tqWarning( "TQBuffer::at: Buffer is not open" );
return FALSE;
}
#endif
if ( pos > a_len ) {
#if defined(QT_CHECK_RANGE)
#if defined(QT_ABI_QT4)
- qWarning( "TQBuffer::at: Index %lld out of range", pos );
+ tqWarning( "TQBuffer::at: Index %lld out of range", pos );
#else
- qWarning( "TQBuffer::at: Index %lu out of range", pos );
+ tqWarning( "TQBuffer::at: Index %lu out of range", pos );
#endif
#endif
return FALSE;
@@ -289,15 +289,15 @@ Q_LONG TQBuffer::readBlock( char *p, Q_ULONG len )
{
#if defined(QT_CHECK_STATE)
if ( !p ) {
- qWarning( "TQBuffer::readBlock: Null pointer error" );
+ tqWarning( "TQBuffer::readBlock: Null pointer error" );
return -1;
}
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::readBlock: Buffer not open" );
+ tqWarning( "TQBuffer::readBlock: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::readBlock: Read operation not permitted" );
+ tqWarning( "TQBuffer::readBlock: Read operation not permitted" );
return -1;
}
#endif
@@ -337,17 +337,17 @@ Q_LONG TQBuffer::writeBlock( const char *p, Q_ULONG len )
#if defined(QT_CHECK_NULL)
if ( p == 0 ) {
- qWarning( "TQBuffer::writeBlock: Null pointer error" );
+ tqWarning( "TQBuffer::writeBlock: Null pointer error" );
return -1;
}
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::writeBlock: Buffer not open" );
+ tqWarning( "TQBuffer::writeBlock: Buffer not open" );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- qWarning( "TQBuffer::writeBlock: Write operation not permitted" );
+ tqWarning( "TQBuffer::writeBlock: Write operation not permitted" );
return -1;
}
#endif
@@ -355,7 +355,7 @@ Q_LONG TQBuffer::writeBlock( const char *p, Q_ULONG len )
Q_ULONG new_len = a_len + a_inc*((ioIndex+len-a_len)/a_inc+1);
if ( !a.resize( new_len ) ) { // could not resize
#if defined(QT_CHECK_NULL)
- qWarning( "TQBuffer::writeBlock: Memory allocation error" );
+ tqWarning( "TQBuffer::writeBlock: Memory allocation error" );
#endif
setStatus( IO_ResourceError );
return -1;
@@ -380,17 +380,17 @@ Q_LONG TQBuffer::readLine( char *p, Q_ULONG maxlen )
{
#if defined(QT_CHECK_NULL)
if ( p == 0 ) {
- qWarning( "TQBuffer::readLine: Null pointer error" );
+ tqWarning( "TQBuffer::readLine: Null pointer error" );
return -1;
}
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::readLine: Buffer not open" );
+ tqWarning( "TQBuffer::readLine: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::readLine: Read operation not permitted" );
+ tqWarning( "TQBuffer::readLine: Read operation not permitted" );
return -1;
}
#endif
@@ -419,11 +419,11 @@ int TQBuffer::getch()
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::getch: Buffer not open" );
+ tqWarning( "TQBuffer::getch: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::getch: Read operation not permitted" );
+ tqWarning( "TQBuffer::getch: Read operation not permitted" );
return -1;
}
#endif
@@ -450,11 +450,11 @@ int TQBuffer::putch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::putch: Buffer not open" );
+ tqWarning( "TQBuffer::putch: Buffer not open" );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- qWarning( "TQBuffer::putch: Write operation not permitted" );
+ tqWarning( "TQBuffer::putch: Write operation not permitted" );
return -1;
}
#endif
@@ -479,11 +479,11 @@ int TQBuffer::ungetch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::ungetch: Buffer not open" );
+ tqWarning( "TQBuffer::ungetch: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::ungetch: Read operation not permitted" );
+ tqWarning( "TQBuffer::ungetch: Read operation not permitted" );
return -1;
}
#endif
diff --git a/src/tools/qcomlibrary.cpp b/src/tools/qcomlibrary.cpp
index 5869d3e37..7097b287a 100644
--- a/src/tools/qcomlibrary.cpp
+++ b/src/tools/qcomlibrary.cpp
@@ -100,25 +100,25 @@ static bool qt_verify( const TQString& library, uint version, uint flags,
if ( (flags & 1) == 0 ) {
if ( warn )
- qWarning( "Conflict in %s:\n"
+ tqWarning( "Conflict in %s:\n"
" Plugin cannot be queried successfully!",
(const char*) TQFile::encodeName(library) );
} else if ( ( version > TQT_VERSION ) ||
( ( TQT_VERSION & 0xff0000 ) > ( version & 0xff0000 ) ) ) {
if ( warn )
- qWarning( "Conflict in %s:\n"
+ tqWarning( "Conflict in %s:\n"
" Plugin uses incompatible TQt library (%d.%d.%d)!",
(const char*) TQFile::encodeName(library),
(version&0xff0000) >> 16, (version&0xff00) >> 8, version&0xff );
} else if ( (flags & 2) != (our_flags & 2) ) {
if ( warn )
- qWarning( "Conflict in %s:\n"
+ tqWarning( "Conflict in %s:\n"
" Plugin uses %s TQt library!",
(const char*) TQFile::encodeName(library),
(flags & 2) ? "multi threaded" : "single threaded" );
} else if ( key != TQT_BUILD_KEY ) {
if ( warn )
- qWarning( "Conflict in %s:\n"
+ tqWarning( "Conflict in %s:\n"
" Plugin uses incompatible TQt library!\n"
" expected build key \"%s\", got \"%s\".",
(const char*) TQFile::encodeName(library),
@@ -326,7 +326,7 @@ static bool qt_unix_query( const TQString &library, uint *version, uint *flags,
{
TQFile file( library );
if (! file.open( IO_ReadOnly ) ) {
- qWarning( "%s: %s", (const char*) TQFile::encodeName(library),
+ tqWarning( "%s: %s", (const char*) TQFile::encodeName(library),
strerror( errno ) );
return FALSE;
}
@@ -345,7 +345,7 @@ static bool qt_unix_query( const TQString &library, uint *version, uint *flags,
fdlen = maplen;
} else {
// mmap failed
- qWarning( "mmap: %s", strerror( errno ) );
+ tqWarning( "mmap: %s", strerror( errno ) );
#endif // USE_MMAP
// try reading the data into memory instead
data = file.readAll();
@@ -367,7 +367,7 @@ static bool qt_unix_query( const TQString &library, uint *version, uint *flags,
#ifdef USE_MMAP
if ( mapaddr != MAP_FAILED && munmap(mapaddr, maplen) != 0 ) {
- qWarning( "munmap: %s", strerror( errno ) );
+ tqWarning( "munmap: %s", strerror( errno ) );
}
#endif // USE_MMAP
@@ -399,8 +399,8 @@ void TQComLibrary::createInstanceInternal()
bool warn_mismatch = TRUE;
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &cache ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &cache ) : 0 );
#endif // QT_THREAD_SUPPORT
if ( ! cache ) {
@@ -474,7 +474,7 @@ void TQComLibrary::createInstanceInternal()
if ( ! query_done ) {
if ( warn_mismatch ) {
- qWarning( "Conflict in %s:\n Plugin cannot be queried successfully!",
+ tqWarning( "Conflict in %s:\n Plugin cannot be queried successfully!",
(const char*) TQFile::encodeName( library() ) );
}
unload();
@@ -499,7 +499,7 @@ void TQComLibrary::createInstanceInternal()
ucmInstanceProc = (UCMInstanceProc) resolve( "ucm_instantiate" );
#if defined(QT_DEBUG_COMPONENT)
if ( !ucmInstanceProc )
- qWarning( "%s: Not a UCOM library.", (const char*) TQFile::encodeName(library()) );
+ tqWarning( "%s: Not a UCOM library.", (const char*) TQFile::encodeName(library()) );
#endif
entry = ucmInstanceProc ? ucmInstanceProc() : 0;
@@ -514,7 +514,7 @@ void TQComLibrary::createInstanceInternal()
}
} else {
#if defined(QT_DEBUG_COMPONENT)
- qWarning( "%s: No exported component provided.", (const char*) TQFile::encodeName(library()) );
+ tqWarning( "%s: No exported component provided.", (const char*) TQFile::encodeName(library()) );
#endif
unload();
}
diff --git a/src/tools/qcomponentfactory.cpp b/src/tools/qcomponentfactory.cpp
index 22e871409..09bb358ad 100644
--- a/src/tools/qcomponentfactory.cpp
+++ b/src/tools/qcomponentfactory.cpp
@@ -116,7 +116,7 @@ static TQPtrList<TQComLibrary> *liblist()
if ( !libraries ) {
libraries = new TQPtrList<TQComLibrary>();
libraries->setAutoDelete( TRUE );
- qAddPostRoutine( cleanup );
+ tqAddPostRoutine( cleanup );
}
return libraries;
}
diff --git a/src/tools/qcstring.cpp b/src/tools/qcstring.cpp
index 8e7a1d14d..f6f4f1ff8 100644
--- a/src/tools/qcstring.cpp
+++ b/src/tools/qcstring.cpp
@@ -70,7 +70,7 @@
is copied correctly even if \a src and \a dst overlap.
*/
-void *qmemmove( void *dst, const void *src, uint len )
+void *tqmemmove( void *dst, const void *src, uint len )
{
register char *d;
register char *s;
@@ -100,7 +100,7 @@ void *qmemmove( void *dst, const void *src, uint len )
The returned string must be deleted using \c delete[].
*/
-char *qstrdup( const char *src )
+char *tqstrdup( const char *src )
{
if ( !src )
return 0;
@@ -133,7 +133,7 @@ char *qstrdup( const char *src )
\sa qstrcpy()
*/
-char *qstrncpy( char *dst, const char *src, uint len )
+char *tqstrncpy( char *dst, const char *src, uint len )
{
if ( !src || !dst )
return 0;
@@ -170,7 +170,7 @@ char *qstrncpy( char *dst, const char *src, uint len )
Special case II: Returns a random nonzero value if \a str1 is 0
or \a str2 is 0 (but not both).
- \sa tqstrncmp() qstricmp() qstrnicmp()
+ \sa tqstrncmp() tqstricmp() tqstrnicmp()
\link #asciinotion Note on character comparisons \endlink
*/
@@ -192,7 +192,7 @@ char *qstrncpy( char *dst, const char *src, uint len )
Special case II: Returns a random nonzero value if \a str1 is 0
or \a str2 is 0 (but not both).
- \sa qstrcmp(), qstricmp(), qstrnicmp()
+ \sa qstrcmp(), tqstricmp(), tqstrnicmp()
\link #asciinotion Note on character comparisons \endlink
*/
@@ -212,11 +212,11 @@ char *qstrncpy( char *dst, const char *src, uint len )
Special case II: Returns a random nonzero value if \a str1 is 0
or \a str2 is 0 (but not both).
- \sa qstrcmp(), tqstrncmp(), qstrnicmp()
+ \sa qstrcmp(), tqstrncmp(), tqstrnicmp()
\link #asciinotion Note on character comparisons \endlink
*/
-int qstricmp( const char *str1, const char *str2 )
+int tqstricmp( const char *str1, const char *str2 )
{
register const uchar *s1 = (const uchar *)str1;
register const uchar *s2 = (const uchar *)str2;
@@ -246,11 +246,11 @@ int qstricmp( const char *str1, const char *str2 )
Special case II: Returns a random nonzero value if \a str1 is 0
or \a str2 is 0 (but not both).
- \sa qstrcmp(), tqstrncmp() qstricmp()
+ \sa qstrcmp(), tqstrncmp() tqstricmp()
\link #asciinotion Note on character comparisons \endlink
*/
-int qstrnicmp( const char *str1, const char *str2, uint len )
+int tqstrnicmp( const char *str1, const char *str2, uint len )
{
register const uchar *s1 = (const uchar *)str1;
register const uchar *s2 = (const uchar *)str2;
@@ -308,13 +308,13 @@ static void createCRC16Table() // build CRC16 lookup table
The checksum is independent of the byte order (endianness).
*/
-Q_UINT16 qChecksum( const char *data, uint len )
+Q_UINT16 tqChecksum( const char *data, uint len )
{
if ( !crc_tbl_init ) { // create lookup table
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &crc_tbl_init ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &crc_tbl_init ) : 0 );
#endif // QT_THREAD_SUPPORT
if ( !crc_tbl_init ) {
@@ -335,7 +335,7 @@ Q_UINT16 qChecksum( const char *data, uint len )
}
/*!
- \fn TQByteArray qCompress( const TQByteArray& data )
+ \fn TQByteArray tqCompress( const TQByteArray& data )
\relates TQByteArray
@@ -355,7 +355,7 @@ Q_UINT16 qChecksum( const char *data, uint len )
*/
#ifndef QT_NO_COMPRESS
-TQByteArray qCompress( const uchar* data, int nbytes )
+TQByteArray tqCompress( const uchar* data, int nbytes )
{
if ( nbytes == 0 ) {
TQByteArray tmp( 4 );
@@ -364,7 +364,7 @@ TQByteArray qCompress( const uchar* data, int nbytes )
}
if ( !data ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "qCompress: data is NULL." );
+ tqWarning( "qCompress: data is NULL." );
#endif
return TQByteArray();
}
@@ -386,7 +386,7 @@ TQByteArray qCompress( const uchar* data, int nbytes )
break;
case Z_MEM_ERROR:
#if defined(QT_CHECK_RANGE)
- qWarning( "qCompress: Z_MEM_ERROR: Not enough memory." );
+ tqWarning( "qCompress: Z_MEM_ERROR: Not enough memory." );
#endif
bazip.resize( 0 );
break;
@@ -411,12 +411,12 @@ TQByteArray qCompress( const uchar* data, int nbytes )
Returns an empty TQByteArray if the input data was corrupt.
\omit
ADD THE FOLLOWING FOR TQt 4.0
- This function will uncompress data compressed with qCompress()
+ This function will uncompress data compressed with tqCompress()
from this and any earlier TQt version, back to TQt 3.1 when this
feature was added.
\endomit
- \sa qCompress()
+ \sa tqCompress()
*/
/*!
@@ -433,14 +433,14 @@ TQByteArray tqUncompress( const uchar* data, int nbytes )
{
if ( !data ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "qUncompress: data is NULL." );
+ tqWarning( "qUncompress: data is NULL." );
#endif
return TQByteArray();
}
if ( nbytes <= 4 ) {
#if defined(QT_CHECK_RANGE)
if ( nbytes < 4 || ( data[0]!=0 || data[1]!=0 || data[2]!=0 || data[3]!=0 ) )
- qWarning( "qUncompress: Input data is corrupted." );
+ tqWarning( "qUncompress: Input data is corrupted." );
#endif
return TQByteArray();
}
@@ -463,7 +463,7 @@ TQByteArray tqUncompress( const uchar* data, int nbytes )
break;
case Z_MEM_ERROR:
#if defined(QT_CHECK_RANGE)
- qWarning( "qUncompress: Z_MEM_ERROR: Not enough memory." );
+ tqWarning( "qUncompress: Z_MEM_ERROR: Not enough memory." );
#endif
break;
case Z_BUF_ERROR:
@@ -471,7 +471,7 @@ TQByteArray tqUncompress( const uchar* data, int nbytes )
break;
case Z_DATA_ERROR:
#if defined(QT_CHECK_RANGE)
- qWarning( "qUncompress: Z_DATA_ERROR: Input data is corrupted." );
+ tqWarning( "qUncompress: Z_DATA_ERROR: Input data is corrupted." );
#endif
break;
}
@@ -552,7 +552,7 @@ TQDataStream &operator>>( TQDataStream &s, TQByteArray &a )
}
if ( !a.resize( (uint)len ) ) { // resize array
#if defined(QT_CHECK_NULL)
- qWarning( "TQDataStream: Not enough memory to read TQByteArray" );
+ tqWarning( "TQDataStream: Not enough memory to read TQByteArray" );
#endif
len = 0;
}
@@ -1031,7 +1031,7 @@ int TQCString::find( const char *str, int index, bool cs, uint l ) const
while ( haystack <= end ) {
hashHaystack += tolower(*(haystack+sl_minus_1));
if ( hashHaystack == hashNeedle
- && qstrnicmp( needle, haystack, sl ) == 0 )
+ && tqstrnicmp( needle, haystack, sl ) == 0 )
return haystack - data();
REHASH( tolower(*haystack) );
@@ -1136,7 +1136,7 @@ int TQCString::findRev( const char *str, int index, bool cs ) const
hashHaystack -= tolower(*haystack);
while ( haystack >= end ) {
hashHaystack += tolower(*haystack);
- if ( hashHaystack == hashNeedle && qstrnicmp( needle, haystack, sl ) == 0 )
+ if ( hashHaystack == hashNeedle && tqstrnicmp( needle, haystack, sl ) == 0 )
return haystack-data();
--haystack;
REHASH( tolower(*(haystack+sl)) );
@@ -2192,7 +2192,7 @@ TQCString &TQCString::setNum( double n, char f, int prec )
{
#if defined(QT_CHECK_RANGE)
if ( !(f=='f' || f=='F' || f=='e' || f=='E' || f=='g' || f=='G') )
- qWarning( "TQCString::setNum: Invalid format char '%c'", f );
+ tqWarning( "TQCString::setNum: Invalid format char '%c'", f );
#endif
char format[20];
register char *fs = format; // generate format string
@@ -2323,7 +2323,7 @@ TQDataStream &operator>>( TQDataStream &s, TQCString &str )
}
if ( !str.TQByteArray::resize( (uint)len )) {// resize string
#if defined(QT_CHECK_NULL)
- qWarning( "TQDataStream: Not enough memory to read TQCString" );
+ tqWarning( "TQDataStream: Not enough memory to read TQCString" );
#endif
len = 0;
}
diff --git a/src/tools/qdatastream.cpp b/src/tools/qdatastream.cpp
index deab90bb6..1af0d649b 100644
--- a/src/tools/qdatastream.cpp
+++ b/src/tools/qdatastream.cpp
@@ -219,7 +219,7 @@
#if defined(QT_CHECK_STATE)
#undef CHECK_STREAM_PRECOND
#define CHECK_STREAM_PRECOND if ( !dev ) { \
- qWarning( "TQDataStream: No device" ); \
+ tqWarning( "TQDataStream: No device" ); \
return *this; }
#else
#define CHECK_STREAM_PRECOND
@@ -248,7 +248,7 @@ static const int DefaultStreamVersion = 6;
TQDataStream::TQDataStream()
{
if ( systemWordSize == 0 ) // get system features
- qSysInfo( &systemWordSize, &systemBigEndian );
+ tqSysInfo( &systemWordSize, &systemBigEndian );
dev = 0; // no device set
owndev = FALSE;
byteorder = BigEndian; // default byte order
@@ -272,7 +272,7 @@ TQDataStream::TQDataStream()
TQDataStream::TQDataStream( TQIODevice *d )
{
if ( systemWordSize == 0 ) // get system features
- qSysInfo( &systemWordSize, &systemBigEndian );
+ tqSysInfo( &systemWordSize, &systemBigEndian );
dev = d; // set device
owndev = FALSE;
byteorder = BigEndian; // default byte order
@@ -303,7 +303,7 @@ TQDataStream::TQDataStream( TQIODevice *d )
TQDataStream::TQDataStream( TQByteArray a, int mode )
{
if ( systemWordSize == 0 ) // get system features
- qSysInfo( &systemWordSize, &systemBigEndian );
+ tqSysInfo( &systemWordSize, &systemBigEndian );
dev = new TQBuffer( a ); // create device
((TQBuffer *)dev)->open( mode ); // open device
owndev = TRUE;
diff --git a/src/tools/qdatetime.cpp b/src/tools/qdatetime.cpp
index d1358cc87..00eba97d3 100644
--- a/src/tools/qdatetime.cpp
+++ b/src/tools/qdatetime.cpp
@@ -513,7 +513,7 @@ TQString TQDate::shortMonthName( int month )
{
#if defined(QT_CHECK_RANGE)
if ( month < 1 || month > 12 ) {
- qWarning( "TQDate::shortMonthName: Parameter out ouf range" );
+ tqWarning( "TQDate::shortMonthName: Parameter out ouf range" );
month = 1;
}
#endif
@@ -559,7 +559,7 @@ TQString TQDate::longMonthName( int month )
{
#if defined(QT_CHECK_RANGE)
if ( month < 1 || month > 12 ) {
- qWarning( "TQDate::longMonthName: Parameter out ouf range" );
+ tqWarning( "TQDate::longMonthName: Parameter out ouf range" );
month = 1;
}
#endif
@@ -613,7 +613,7 @@ TQString TQDate::shortDayName( int weekday )
{
#if defined(QT_CHECK_RANGE)
if ( weekday < 1 || weekday > 7 ) {
- qWarning( "TQDate::shortDayName: Parameter out of range" );
+ tqWarning( "TQDate::shortDayName: Parameter out of range" );
weekday = 1;
}
#endif
@@ -661,7 +661,7 @@ TQString TQDate::longDayName( int weekday )
{
#if defined(QT_CHECK_RANGE)
if ( weekday < 1 || weekday > 7 ) {
- qWarning( "TQDate::longDayName: Parameter out of range" );
+ tqWarning( "TQDate::longDayName: Parameter out of range" );
weekday = 1;
}
#endif
@@ -850,7 +850,7 @@ bool TQDate::setYMD( int y, int m, int d )
return isValid();
if ( !isValid(y,m,d) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQDate::setYMD: Invalid date %04d-%02d-%02d", y, m, d );
+ tqWarning( "TQDate::setYMD: Invalid date %04d-%02d-%02d", y, m, d );
#endif
return FALSE;
}
@@ -1073,7 +1073,7 @@ TQDate TQDate::fromString( const TQString& s, TQt::DateFormat f )
{
if ( ( s.isEmpty() ) || ( f == TQt::LocalDate ) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQDate::fromString: Parameter out of range" );
+ tqWarning( "TQDate::fromString: Parameter out of range" );
#endif
TQDate d;
d.jd = 0;
@@ -1122,7 +1122,7 @@ TQDate TQDate::fromString( const TQString& s, TQt::DateFormat f )
}
#if defined(QT_CHECK_RANGE)
if ( month < 1 || month > 12 ) {
- qWarning( "TQDate::fromString: Parameter out of range" );
+ tqWarning( "TQDate::fromString: Parameter out of range" );
TQDate d;
d.jd = 0;
return d;
@@ -1493,7 +1493,7 @@ bool TQTime::setHMS( int h, int m, int s, int ms )
{
if ( !isValid(h,m,s,ms) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQTime::setHMS Invalid time %02d:%02d:%02d.%03d", h, m, s,
+ tqWarning( "TQTime::setHMS Invalid time %02d:%02d:%02d.%03d", h, m, s,
ms );
#endif
ds = MSECS_PER_DAY; // make this invalid
@@ -1664,7 +1664,7 @@ TQTime TQTime::fromString( const TQString& s, TQt::DateFormat f )
{
if ( ( s.isEmpty() ) || ( f == TQt::LocalDate ) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQTime::fromString: Parameter out of range" );
+ tqWarning( "TQTime::fromString: Parameter out of range" );
#endif
TQTime t;
t.ds = MSECS_PER_DAY;
@@ -1708,7 +1708,7 @@ bool TQTime::currentTime( TQTime *ct, TQt::TimeSpec ts )
{
if ( !ct ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQTime::currentTime(TQTime *): Null pointer not allowed" );
+ tqWarning( "TQTime::currentTime(TQTime *): Null pointer not allowed" );
#endif
return FALSE;
}
@@ -1789,7 +1789,7 @@ bool TQTime::isValid( int h, int m, int s, int ms )
TQTime t;
t.start();
some_lengthy_task();
- qDebug( "Time elapsed: %d ms", t.elapsed() );
+ tqDebug( "Time elapsed: %d ms", t.elapsed() );
\endcode
\sa restart(), elapsed(), currentTime()
@@ -2320,7 +2320,7 @@ int TQDateTime::daysTo( const TQDateTime &dt ) const
\code
TQDateTime dt = TQDateTime::currentDateTime();
TQDateTime xmas( TQDate(dt.date().year(),12,24), TQTime(17,00) );
- qDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) );
+ tqDebug( "There are %d seconds to Christmas", dt.secsTo(xmas) );
\endcode
\sa addSecs(), daysTo(), TQTime::secsTo()
@@ -2449,7 +2449,7 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f )
{
if ( ( s.isEmpty() ) || ( f == TQt::LocalDate ) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQDateTime::fromString: Parameter out of range" );
+ tqWarning( "TQDateTime::fromString: Parameter out of range" );
#endif
TQDateTime dt;
dt.d.jd = 0;
@@ -2482,7 +2482,7 @@ TQDateTime TQDateTime::fromString( const TQString& s, TQt::DateFormat f )
}
#if defined(QT_CHECK_RANGE)
if ( month < 1 || month > 12 ) {
- qWarning( "TQDateTime::fromString: Parameter out of range" );
+ tqWarning( "TQDateTime::fromString: Parameter out of range" );
TQDateTime dt;
dt.d.jd = 0;
return dt;
diff --git a/src/tools/qdir.cpp b/src/tools/qdir.cpp
index 17b748510..4079b7ea5 100644
--- a/src/tools/qdir.cpp
+++ b/src/tools/qdir.cpp
@@ -132,18 +132,18 @@ const bool CaseSensitiveFS = TRUE;
\code
TQDir d( "example" ); // "./example"
if ( !d.exists() )
- qWarning( "Cannot find the example directory" );
+ tqWarning( "Cannot find the example directory" );
\endcode
Traversing directories and reading a file.
\code
TQDir d = TQDir::root(); // "/"
if ( !d.cd("tmp") ) { // "/tmp"
- qWarning( "Cannot find the \"/tmp\" directory" );
+ tqWarning( "Cannot find the \"/tmp\" directory" );
} else {
TQFile f( d.filePath("ex1.txt") ); // "/tmp/ex1.txt"
if ( !f.open(IO_ReadWrite) )
- qWarning( "Cannot create the file %s", f.name() );
+ tqWarning( "Cannot create the file %s", f.name() );
}
\endcode
@@ -1005,7 +1005,7 @@ TQDir &TQDir::operator=( const TQString &path )
TQDir d1( "/usr/local/bin" );
TQDir d2( "bin" );
if ( d1 != d2 )
- qDebug( "They differ" );
+ tqDebug( "They differ" );
\endcode
*/
@@ -1021,7 +1021,7 @@ TQDir &TQDir::operator=( const TQString &path )
TQDir d2( "bin" );
d2.convertToAbs();
if ( d1 == d2 )
- qDebug( "They're the same" );
+ tqDebug( "They're the same" );
\endcode
*/
@@ -1051,7 +1051,7 @@ bool TQDir::remove( const TQString &fileName, bool acceptAbsPath )
{
if ( fileName.isEmpty() ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQDir::remove: Empty or null file name" );
+ tqWarning( "TQDir::remove: Empty or null file name" );
#endif
return FALSE;
}
@@ -1076,7 +1076,7 @@ bool TQDir::exists( const TQString &name, bool acceptAbsPath ) //### const in 4.
{
if ( name.isEmpty() ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQDir::exists: Empty or null file name" );
+ tqWarning( "TQDir::exists: Empty or null file name" );
#endif
return FALSE;
}
diff --git a/src/tools/qdir_unix.cpp b/src/tools/qdir_unix.cpp
index 54ca9df56..7f316ad71 100644
--- a/src/tools/qdir_unix.cpp
+++ b/src/tools/qdir_unix.cpp
@@ -142,7 +142,7 @@ bool TQDir::rename( const TQString &name, const TQString &newName,
{
if ( name.isEmpty() || newName.isEmpty() ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQDir::rename: Empty or null file name(s)" );
+ tqWarning( "TQDir::rename: Empty or null file name(s)" );
#endif
return FALSE;
}
@@ -178,11 +178,11 @@ TQString TQDir::currentDirPath()
#endif /* __GLIBC__ && !PATH_MAX */
#if defined(QT_DEBUG)
if ( result.isNull() )
- qWarning( "TQDir::currentDirPath: getcwd() failed" );
+ tqWarning( "TQDir::currentDirPath: getcwd() failed" );
#endif
} else {
#if defined(QT_DEBUG)
- qWarning( "TQDir::currentDirPath: stat(\".\") failed" );
+ tqWarning( "TQDir::currentDirPath: stat(\".\") failed" );
#endif
}
slashify( result );
@@ -269,7 +269,7 @@ bool TQDir::readDirEntries( const TQString &nameFilter,
}
if ( closedir(dir) != 0 ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQDir::readDirEntries: Cannot close the directory: %s",
+ tqWarning( "TQDir::readDirEntries: Cannot close the directory: %s",
dPath.local8Bit().data() );
#endif
}
@@ -312,8 +312,8 @@ const TQFileInfoList * TQDir::drives()
if ( !knownMemoryLeak ) {
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &knownMemoryLeak ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &knownMemoryLeak ) : 0 );
#endif // QT_THREAD_SUPPORT
if ( !knownMemoryLeak ) {
diff --git a/src/tools/qfile.cpp b/src/tools/qfile.cpp
index 78c08c7dd..eee256836 100644
--- a/src/tools/qfile.cpp
+++ b/src/tools/qfile.cpp
@@ -247,7 +247,7 @@ void TQFile::setName( const TQString &name )
{
if ( isOpen() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQFile::setName: File is open" );
+ tqWarning( "TQFile::setName: File is open" );
#endif
close();
}
@@ -336,7 +336,7 @@ bool TQFile::atEnd() const
{
if ( !isOpen() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQFile::atEnd: File is not open" );
+ tqWarning( "TQFile::atEnd: File is not open" );
#endif
return FALSE;
}
@@ -373,11 +373,11 @@ Q_LONG TQFile::readLine( char *p, Q_ULONG maxlen )
#if defined(QT_CHECK_STATE)
TQ_CHECK_PTR( p );
if ( !isOpen() ) { // file not open
- qWarning( "TQFile::readLine: File not open" );
+ tqWarning( "TQFile::readLine: File not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQFile::readLine: Read operation not permitted" );
+ tqWarning( "TQFile::readLine: Read operation not permitted" );
return -1;
}
#endif
@@ -444,11 +444,11 @@ int TQFile::getch()
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // file not open
- qWarning( "TQFile::getch: File not open" );
+ tqWarning( "TQFile::getch: File not open" );
return EOF;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQFile::getch: Read operation not permitted" );
+ tqWarning( "TQFile::getch: Read operation not permitted" );
return EOF;
}
#endif
@@ -489,11 +489,11 @@ int TQFile::putch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // file not open
- qWarning( "TQFile::putch: File not open" );
+ tqWarning( "TQFile::putch: File not open" );
return EOF;
}
if ( !isWritable() ) { // writing not permitted
- qWarning( "TQFile::putch: Write operation not permitted" );
+ tqWarning( "TQFile::putch: Write operation not permitted" );
return EOF;
}
#endif
@@ -530,11 +530,11 @@ int TQFile::ungetch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // file not open
- qWarning( "TQFile::ungetch: File not open" );
+ tqWarning( "TQFile::ungetch: File not open" );
return EOF;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQFile::ungetch: Read operation not permitted" );
+ tqWarning( "TQFile::ungetch: Read operation not permitted" );
return EOF;
}
#endif
diff --git a/src/tools/qfile_unix.cpp b/src/tools/qfile_unix.cpp
index c65bf9228..90decadb5 100644
--- a/src/tools/qfile_unix.cpp
+++ b/src/tools/qfile_unix.cpp
@@ -75,7 +75,7 @@ bool TQFile::remove( const TQString &fileName )
{
if ( fileName.isEmpty() ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQFile::remove: Empty or null file name" );
+ tqWarning( "TQFile::remove: Empty or null file name" );
#endif
return FALSE;
}
@@ -168,13 +168,13 @@ bool TQFile::open( int m )
{
if ( isOpen() ) { // file already open
#if defined(QT_CHECK_STATE)
- qWarning( "TQFile::open: File already open" );
+ tqWarning( "TQFile::open: File already open" );
#endif
return FALSE;
}
if ( fn.isEmpty() ) { // no file name defined
#if defined(QT_CHECK_NULL)
- qWarning( "TQFile::open: No file name specified" );
+ tqWarning( "TQFile::open: No file name specified" );
#endif
return FALSE;
}
@@ -182,7 +182,7 @@ bool TQFile::open( int m )
setMode( m );
if ( !(isReadable() || isWritable()) ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQFile::open: File access not specified" );
+ tqWarning( "TQFile::open: File access not specified" );
#endif
return FALSE;
}
@@ -340,7 +340,7 @@ bool TQFile::open( int m, FILE *f )
{
if ( isOpen() ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQFile::open: File already open" );
+ tqWarning( "TQFile::open: File already open" );
#endif
return FALSE;
}
@@ -412,7 +412,7 @@ bool TQFile::open( int m, int f )
{
if ( isOpen() ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQFile::open: File already open" );
+ tqWarning( "TQFile::open: File already open" );
#endif
return FALSE;
}
@@ -508,7 +508,7 @@ bool TQFile::at( Offset pos )
{
if ( !isOpen() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQFile::at: File is not open" );
+ tqWarning( "TQFile::at: File is not open" );
#endif
return FALSE;
}
@@ -535,9 +535,9 @@ bool TQFile::at( Offset pos )
#if defined(QT_CHECK_RANGE)
else
#if defined(QT_ABI_QT4)
- qWarning( "TQFile::at: Cannot set file position %lld", pos );
+ tqWarning( "TQFile::at: Cannot set file position %lld", pos );
#else
- qWarning( "TQFile::at: Cannot set file position %lu", pos );
+ tqWarning( "TQFile::at: Cannot set file position %lu", pos );
#endif
#endif
return ok;
@@ -560,15 +560,15 @@ Q_LONG TQFile::readBlock( char *p, Q_ULONG len )
#if defined(QT_CHECK_NULL)
if ( !p )
- qWarning( "TQFile::readBlock: Null pointer error" );
+ tqWarning( "TQFile::readBlock: Null pointer error" );
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "TQFile::readBlock: File not open" );
+ tqWarning( "TQFile::readBlock: File not open" );
return -1;
}
if ( !isReadable() ) {
- qWarning( "TQFile::readBlock: Read operation not permitted" );
+ tqWarning( "TQFile::readBlock: Read operation not permitted" );
return -1;
}
#endif
@@ -629,15 +629,15 @@ Q_LONG TQFile::writeBlock( const char *p, Q_ULONG len )
#if defined(QT_CHECK_NULL)
if ( p == 0 && len != 0 )
- qWarning( "TQFile::writeBlock: Null pointer error" );
+ tqWarning( "TQFile::writeBlock: Null pointer error" );
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // file not open
- qWarning( "TQFile::writeBlock: File not open" );
+ tqWarning( "TQFile::writeBlock: File not open" );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- qWarning( "TQFile::writeBlock: Write operation not permitted" );
+ tqWarning( "TQFile::writeBlock: Write operation not permitted" );
return -1;
}
#endif
diff --git a/src/tools/qfileinfo_unix.cpp b/src/tools/qfileinfo_unix.cpp
index 5f10a2074..a78452fdf 100644
--- a/src/tools/qfileinfo_unix.cpp
+++ b/src/tools/qfileinfo_unix.cpp
@@ -277,9 +277,9 @@ uint TQFileInfo::groupId() const
\code
TQFileInfo fi( "/tmp/archive.tar.gz" );
if ( fi.permission( TQFileInfo::WriteUser | TQFileInfo::ReadGroup ) )
- qWarning( "I can change the file; my group can read the file" );
+ tqWarning( "I can change the file; my group can read the file" );
if ( fi.permission( TQFileInfo::WriteGroup | TQFileInfo::WriteOther ) )
- qWarning( "The group or others can change the file" );
+ tqWarning( "The group or others can change the file" );
\endcode
\sa isReadable(), isWritable(), isExecutable()
@@ -319,7 +319,7 @@ bool TQFileInfo::permission( int permissionSpec ) const
return (fic->st.st_mode & mask) == mask;
} else {
#if defined(QT_CHECK_NULL)
- qWarning( "TQFileInfo::permission: permissionSpec is 0" );
+ tqWarning( "TQFileInfo::permission: permissionSpec is 0" );
#endif
return TRUE;
}
diff --git a/src/tools/qgarray.cpp b/src/tools/qgarray.cpp
index 8eba534ca..31e881790 100644
--- a/src/tools/qgarray.cpp
+++ b/src/tools/qgarray.cpp
@@ -138,7 +138,7 @@ TQGArray::TQGArray( int size )
{
if ( size < 0 ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQGArray: Cannot allocate array with negative length" );
+ tqWarning( "TQGArray: Cannot allocate array with negative length" );
#endif
size = 0;
}
@@ -578,7 +578,7 @@ void TQGArray::resetRawData( const char *d, uint len )
{
if ( d != shd->data || len != shd->len ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQGArray::resetRawData: Inconsistent arguments" );
+ tqWarning( "TQGArray::resetRawData: Inconsistent arguments" );
#endif
return;
}
@@ -601,7 +601,7 @@ int TQGArray::find( const char *d, uint index, uint sz ) const
index *= sz;
if ( index >= shd->len ) {
#if defined(QT_CHECK_RANGE)
- qWarning( "TQGArray::find: Index %d out of range", index/sz );
+ tqWarning( "TQGArray::find: Index %d out of range", index/sz );
#endif
return -1;
}
@@ -734,8 +734,8 @@ void TQGArray::sort( uint sz )
return;
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &cmp_item_size ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &cmp_item_size ) : 0 );
#endif // QT_THREAD_SUPPORT
cmp_item_size = sz;
@@ -753,8 +753,8 @@ int TQGArray::bsearch( const char *d, uint sz ) const
return -1;
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &cmp_item_size ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &cmp_item_size ) : 0 );
#endif // QT_THREAD_SUPPORT
cmp_item_size = sz;
@@ -803,7 +803,7 @@ bool TQGArray::setExpand( uint index, const char *d, uint sz )
void TQGArray::msg_index( uint index )
{
#if defined(QT_CHECK_RANGE)
- qWarning( "TQGArray::at: Absolute index %d out of range", index );
+ tqWarning( "TQGArray::at: Absolute index %d out of range", index );
#else
Q_UNUSED( index )
#endif
diff --git a/src/tools/qgcache.cpp b/src/tools/qgcache.cpp
index a67112f9c..7d6d7d415 100644
--- a/src/tools/qgcache.cpp
+++ b/src/tools/qgcache.cpp
@@ -283,7 +283,7 @@ TQGCache::TQGCache( const TQGCache & )
: TQPtrCollection()
{
#if defined(QT_CHECK_NULL)
- qFatal( "TQGCache::TQGCache(TQGCache &): Cannot copy a cache" );
+ tqFatal( "TQGCache::TQGCache(TQGCache &): Cannot copy a cache" );
#endif
}
@@ -305,7 +305,7 @@ TQGCache::~TQGCache()
TQGCache &TQGCache::operator=( const TQGCache & )
{
#if defined(QT_CHECK_NULL)
- qFatal( "TQGCache::operator=: Cannot copy a cache" );
+ tqFatal( "TQGCache::operator=: Cannot copy a cache" );
#endif
return *this;
}
@@ -413,7 +413,7 @@ bool TQGCache::insert_other( const char *key, TQPtrCollection::Item data,
lruList->insertCosts += cost;
#endif
if ( keytype == AsciiKey && copyk )
- key = qstrdup( key );
+ key = tqstrdup( key );
if ( priority < -32768 )
priority = -32768;
else if ( priority > 32767 )
@@ -641,28 +641,28 @@ void TQGCache::statistics() const
#if defined(QT_DEBUG)
TQString line;
line.fill( '*', 80 );
- qDebug( "%s", line.ascii() );
- qDebug( "CACHE STATISTICS:" );
- qDebug( "cache contains %d item%s, with a total cost of %d",
+ tqDebug( "%s", line.ascii() );
+ tqDebug( "CACHE STATISTICS:" );
+ tqDebug( "cache contains %d item%s, with a total cost of %d",
count(), count() != 1 ? "s" : "", tCost );
- qDebug( "maximum cost is %d, cache is %d%% full.",
+ tqDebug( "maximum cost is %d, cache is %d%% full.",
mCost, (200*tCost + mCost) / (mCost*2) );
- qDebug( "find() has been called %d time%s",
+ tqDebug( "find() has been called %d time%s",
lruList->finds, lruList->finds != 1 ? "s" : "" );
- qDebug( "%d of these were hits, items found had a total cost of %d.",
+ tqDebug( "%d of these were hits, items found had a total cost of %d.",
lruList->hits,lruList->hitCosts );
- qDebug( "%d item%s %s been inserted with a total cost of %d.",
+ tqDebug( "%d item%s %s been inserted with a total cost of %d.",
lruList->inserts,lruList->inserts != 1 ? "s" : "",
lruList->inserts != 1 ? "have" : "has", lruList->insertCosts );
- qDebug( "%d item%s %s too large or had too low priority to be inserted.",
+ tqDebug( "%d item%s %s too large or had too low priority to be inserted.",
lruList->insertMisses, lruList->insertMisses != 1 ? "s" : "",
lruList->insertMisses != 1 ? "were" : "was" );
- qDebug( "%d item%s %s been thrown away with a total cost of %d.",
+ tqDebug( "%d item%s %s been thrown away with a total cost of %d.",
lruList->dumps, lruList->dumps != 1 ? "s" : "",
lruList->dumps != 1 ? "have" : "has", lruList->dumpCosts );
- qDebug( "Statistics from internal dictionary class:" );
+ tqDebug( "Statistics from internal dictionary class:" );
dict->statistics();
- qDebug( "%s", line.ascii() );
+ tqDebug( "%s", line.ascii() );
#endif
}
diff --git a/src/tools/qgdict.cpp b/src/tools/qgdict.cpp
index ac54098fc..225745243 100644
--- a/src/tools/qgdict.cpp
+++ b/src/tools/qgdict.cpp
@@ -92,7 +92,7 @@ int TQGDict::hashKeyString( const TQString &key )
{
#if defined(QT_CHECK_NULL)
if ( key.isNull() )
- qWarning( "TQGDict::hashKeyString: Invalid null key" );
+ tqWarning( "TQGDict::hashKeyString: Invalid null key" );
#endif
int i;
register uint h=0;
@@ -127,7 +127,7 @@ int TQGDict::hashKeyAscii( const char *key )
{
#if defined(QT_CHECK_NULL)
if ( key == 0 )
- qWarning( "TQGDict::hashAsciiKey: Invalid null key" );
+ tqWarning( "TQGDict::hashAsciiKey: Invalid null key" );
#endif
register const char *k = key;
register uint h=0;
@@ -361,7 +361,7 @@ TQPtrCollection::Item TQGDict::look_string( const TQString &key, TQPtrCollection
TQ_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "TQDict: Cannot insert null item" );
+ tqWarning( "TQDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -382,7 +382,7 @@ TQPtrCollection::Item TQGDict::look_ascii( const char *key, TQPtrCollection::Ite
} else {
for ( n=(TQAsciiBucket*)vec[index]; n;
n=(TQAsciiBucket*)n->getNext() ) {
- if ( qstricmp(n->getKey(),key) == 0 )
+ if ( tqstricmp(n->getKey(),key) == 0 )
return n->getData(); // item found
}
}
@@ -393,11 +393,11 @@ TQPtrCollection::Item TQGDict::look_ascii( const char *key, TQPtrCollection::Ite
remove_ascii( key );
}
// op_insert or op_replace
- n = new TQAsciiBucket(copyk ? qstrdup(key) : key,newItem(d),vec[index]);
+ n = new TQAsciiBucket(copyk ? tqstrdup(key) : key,newItem(d),vec[index]);
TQ_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "TQAsciiDict: Cannot insert null item" );
+ tqWarning( "TQAsciiDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -425,7 +425,7 @@ TQPtrCollection::Item TQGDict::look_int( long key, TQPtrCollection::Item d, int
TQ_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "TQIntDict: Cannot insert null item" );
+ tqWarning( "TQIntDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -453,7 +453,7 @@ TQPtrCollection::Item TQGDict::look_ptr( void *key, TQPtrCollection::Item d, int
TQ_CHECK_PTR( n );
#if defined(QT_CHECK_NULL)
if ( n->getData() == 0 )
- qWarning( "TQPtrDict: Cannot insert null item" );
+ tqWarning( "TQPtrDict: Cannot insert null item" );
#endif
vec[index] = n;
numItems++;
@@ -610,7 +610,7 @@ TQAsciiBucket *TQGDict::unlink_ascii( const char *key, TQPtrCollection::Item d )
int index = hashKeyAscii(key) % vlen;
for ( n=(TQAsciiBucket *)vec[index]; n; n=(TQAsciiBucket *)n->getNext() ) {
bool found = (cases ? qstrcmp(n->getKey(),key)
- : qstricmp(n->getKey(),key)) == 0;
+ : tqstricmp(n->getKey(),key)) == 0;
if ( found && d )
found = (n->getData() == d);
if ( found ) {
@@ -846,11 +846,11 @@ void TQGDict::statistics() const
TQString line;
line.fill( '-', 60 );
double real, ideal;
- qDebug( "%s", line.ascii() );
- qDebug( "DICTIONARY STATISTICS:" );
+ tqDebug( "%s", line.ascii() );
+ tqDebug( "DICTIONARY STATISTICS:" );
if ( count() == 0 ) {
- qDebug( "Empty!" );
- qDebug( "%s", line.ascii() );
+ tqDebug( "Empty!" );
+ tqDebug( "%s", line.ascii() );
return;
}
real = 0.0;
@@ -871,15 +871,15 @@ void TQGDict::statistics() const
while ( b-- )
*pbuf++ = '*';
*pbuf = '\0';
- qDebug( "%s", buf );
+ tqDebug( "%s", buf );
i++;
}
- qDebug( "Array size = %d", size() );
- qDebug( "# items = %d", count() );
- qDebug( "Real dist = %g", real );
- qDebug( "Rand dist = %g", ideal );
- qDebug( "Real/Rand = %g", real/ideal );
- qDebug( "%s", line.ascii() );
+ tqDebug( "Array size = %d", size() );
+ tqDebug( "# items = %d", count() );
+ tqDebug( "Real dist = %g", real );
+ tqDebug( "Rand dist = %g", ideal );
+ tqDebug( "Real/Rand = %g", real/ideal );
+ tqDebug( "%s", line.ascii() );
#endif // QT_DEBUG
}
@@ -1072,7 +1072,7 @@ TQPtrCollection::Item TQGDictIterator::toFirst()
{
if ( !dict ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQGDictIterator::toFirst: Dictionary has been deleted" );
+ tqWarning( "TQGDictIterator::toFirst: Dictionary has been deleted" );
#endif
return 0;
}
@@ -1098,7 +1098,7 @@ TQPtrCollection::Item TQGDictIterator::operator()()
{
if ( !dict ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQGDictIterator::operator(): Dictionary has been deleted" );
+ tqWarning( "TQGDictIterator::operator(): Dictionary has been deleted" );
#endif
return 0;
}
@@ -1117,7 +1117,7 @@ TQPtrCollection::Item TQGDictIterator::operator++()
{
if ( !dict ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQGDictIterator::operator++: Dictionary has been deleted" );
+ tqWarning( "TQGDictIterator::operator++: Dictionary has been deleted" );
#endif
return 0;
}
diff --git a/src/tools/qglist.cpp b/src/tools/qglist.cpp
index b67b11540..f1c89023b 100644
--- a/src/tools/qglist.cpp
+++ b/src/tools/qglist.cpp
@@ -516,7 +516,7 @@ bool TQGList::removeNode( TQLNode *n )
#if defined(QT_CHECK_NULL)
if ( n == 0 || (n->prev && n->prev->next != n) ||
(n->next && n->next->prev != n) ) {
- qWarning( "TQGList::removeNode: Corrupted node" );
+ tqWarning( "TQGList::removeNode: Corrupted node" );
return FALSE;
}
#endif
@@ -618,7 +618,7 @@ TQPtrCollection::Item TQGList::takeNode( TQLNode *n )
#if defined(QT_CHECK_NULL)
if ( n == 0 || (n->prev && n->prev->next != n) ||
(n->next && n->next->prev != n) ) {
- qWarning( "TQGList::takeNode: Corrupted node" );
+ tqWarning( "TQGList::takeNode: Corrupted node" );
return 0;
}
#endif
@@ -1171,7 +1171,7 @@ TQPtrCollection::Item TQGListIterator::toFirst()
{
if ( !list ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQGListIterator::toFirst: List has been deleted" );
+ tqWarning( "TQGListIterator::toFirst: List has been deleted" );
#endif
return 0;
}
@@ -1187,7 +1187,7 @@ TQPtrCollection::Item TQGListIterator::toLast()
{
if ( !list ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQGListIterator::toLast: List has been deleted" );
+ tqWarning( "TQGListIterator::toLast: List has been deleted" );
#endif
return 0;
}
diff --git a/src/tools/qglobal.cpp b/src/tools/qglobal.cpp
index baf6e6f69..f2c92c2e0 100644
--- a/src/tools/qglobal.cpp
+++ b/src/tools/qglobal.cpp
@@ -63,12 +63,12 @@
3.0.5's \c TQT_VERSION is 0x030005.
*/
-const char *qVersion()
+const char *tqVersion()
{
return TQT_VERSION_STR;
}
-bool qSharedBuild()
+bool tqSharedBuild()
{
#ifdef QT_SHARED
return TRUE;
@@ -94,12 +94,12 @@ static bool si_bigEndian;
*wordSize. The \a *bigEndian is set to TRUE if this is a big-endian
machine, or to FALSE if this is a little-endian machine.
- In debug mode, this function calls qFatal() with a message if the
+ 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.
*/
-bool qSysInfo( int *wordSize, bool *bigEndian )
+bool tqSysInfo( int *wordSize, bool *bigEndian )
{
#if defined(QT_CHECK_NULL)
Q_ASSERT( wordSize != 0 );
@@ -124,14 +124,14 @@ bool qSysInfo( int *wordSize, bool *bigEndian )
*wordSize != 32 &&
*wordSize != 16 ) { // word size: 16, 32 or 64
#if defined(QT_CHECK_RANGE)
- qFatal( "qSysInfo: Unsupported system word size %d", *wordSize );
+ tqFatal( "qSysInfo: Unsupported system word size %d", *wordSize );
#endif
return FALSE;
}
if ( sizeof(Q_INT8) != 1 || sizeof(Q_INT16) != 2 || sizeof(Q_INT32) != 4 ||
sizeof(Q_ULONG)*8 != si_wordSize || sizeof(float) != 4 || sizeof(double) != 8 ) {
#if defined(QT_CHECK_RANGE)
- qFatal( "qSysInfo: Unsupported system data type size" );
+ tqFatal( "qSysInfo: Unsupported system data type size" );
#endif
return FALSE;
}
@@ -154,7 +154,7 @@ bool qSysInfo( int *wordSize, bool *bigEndian )
if ( be16 != be32 ) { // strange machine!
#if defined(QT_CHECK_RANGE)
- qFatal( "qSysInfo: Inconsistent system byte order" );
+ tqFatal( "qSysInfo: Inconsistent system byte order" );
#endif
return FALSE;
}
@@ -321,7 +321,7 @@ int qWinVersion()
} else if ( osver.dwMinorVersion == 2 ) {
winver = TQt::WV_2003;
} else {
- qWarning("Untested Windows version detected!");
+ tqWarning("Untested Windows version detected!");
winver = TQt::WV_NT_based;
}
}
@@ -346,7 +346,7 @@ TQt::WindowsVersion qt_winver = (TQt::WindowsVersion)qWinVersion();
*****************************************************************************/
/*!
- \fn void qDebug( const char *msg, ... )
+ \fn void tqDebug( const char *msg, ... )
\relates TQApplication
@@ -358,7 +358,7 @@ TQt::WindowsVersion qt_winver = (TQt::WindowsVersion)qWinVersion();
Example:
\code
- qDebug( "my window handle = %x", myWidget->id() );
+ tqDebug( "my window handle = %x", myWidget->id() );
\endcode
Under X11, the text is printed to stderr. Under Windows, the text
@@ -367,15 +367,15 @@ TQt::WindowsVersion qt_winver = (TQt::WindowsVersion)qWinVersion();
\warning The internal buffer is limited to 8196 bytes (including
the '\0'-terminator).
- \warning Passing (const char *)0 as argument to qDebug might lead
+ \warning Passing (const char *)0 as argument to tqDebug might lead
to crashes on certain platforms due to the platforms printf implementation.
- \sa qWarning(), qFatal(), qInstallMsgHandler(),
+ \sa tqWarning(), tqFatal(), qInstallMsgHandler(),
\link debug.html Debugging\endlink
*/
/*!
- \fn void qWarning( const char *msg, ... )
+ \fn void tqWarning( const char *msg, ... )
\relates TQApplication
@@ -390,7 +390,7 @@ TQt::WindowsVersion qt_winver = (TQt::WindowsVersion)qWinVersion();
void f( int c )
{
if ( c > 200 )
- qWarning( "f: bad argument, c == %d", c );
+ tqWarning( "f: bad argument, c == %d", c );
}
\endcode
@@ -400,15 +400,15 @@ TQt::WindowsVersion qt_winver = (TQt::WindowsVersion)qWinVersion();
\warning The internal buffer is limited to 8196 bytes (including
the '\0'-terminator).
- \warning Passing (const char *)0 as argument to qWarning might lead
+ \warning Passing (const char *)0 as argument to tqWarning might lead
to crashes on certain platforms due to the platforms printf implementation.
- \sa qDebug(), qFatal(), qInstallMsgHandler(),
+ \sa tqDebug(), tqFatal(), qInstallMsgHandler(),
\link debug.html Debugging\endlink
*/
/*!
- \fn void qFatal( const char *msg, ... )
+ \fn void tqFatal( const char *msg, ... )
\relates TQApplication
@@ -423,7 +423,7 @@ TQt::WindowsVersion qt_winver = (TQt::WindowsVersion)qWinVersion();
int divide( int a, int b )
{
if ( b == 0 ) // program error
- qFatal( "divide: cannot divide by zero" );
+ tqFatal( "divide: cannot divide by zero" );
return a/b;
}
\endcode
@@ -434,10 +434,10 @@ TQt::WindowsVersion qt_winver = (TQt::WindowsVersion)qWinVersion();
\warning The internal buffer is limited to 8196 bytes (including
the '\0'-terminator).
- \warning Passing (const char *)0 as argument to qFatal might lead
+ \warning Passing (const char *)0 as argument to tqFatal might lead
to crashes on certain platforms due to the platforms printf implementation.
- \sa qDebug(), qWarning(), qInstallMsgHandler(),
+ \sa tqDebug(), tqWarning(), qInstallMsgHandler(),
\link debug.html Debugging\endlink
*/
@@ -465,7 +465,7 @@ static void mac_default_handler( const char *msg )
#endif
-void qDebug( const char *msg, ... )
+void tqDebug( const char *msg, ... )
{
char buf[QT_BUFFER_LENGTH];
va_list ap;
@@ -516,7 +516,7 @@ void debug( const char *msg, ... )
}
}
-void qWarning( const char *msg, ... )
+void tqWarning( const char *msg, ... )
{
char buf[QT_BUFFER_LENGTH];
va_list ap;
@@ -568,7 +568,7 @@ void warning( const char *msg, ... )
}
}
-void qFatal( const char *msg, ... )
+void tqFatal( const char *msg, ... )
{
char buf[QT_BUFFER_LENGTH];
va_list ap;
@@ -646,7 +646,7 @@ void fatal( const char *msg, ... )
This function does nothing when TQt is built with \c QT_NO_DEBUG
defined.
*/
-void qSystemWarning( const char* msg, int code )
+void tqSystemWarning( const char* msg, int code )
{
#ifndef QT_NO_DEBUG
#if defined(Q_OS_WIN32)
@@ -666,7 +666,7 @@ void qSystemWarning( const char* msg, int code )
0,
NULL );
- qWarning( "%s\n\tError code %d - %s", msg, code, TQString::fromUcs2(string).latin1() );
+ tqWarning( "%s\n\tError code %d - %s", msg, code, TQString::fromUcs2(string).latin1() );
}, {
FormatMessageA( FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
@@ -676,14 +676,14 @@ void qSystemWarning( const char* msg, int code )
0,
NULL );
- qWarning( "%s\n\tError code %d - %s", msg, code, (const char*)string );
+ tqWarning( "%s\n\tError code %d - %s", msg, code, (const char*)string );
} );
LocalFree( (HLOCAL)string );
#else
if ( code != -1 )
- qWarning( "%s\n\tError code %d - %s", msg, code, strerror( code ) );
+ tqWarning( "%s\n\tError code %d - %s", msg, code, strerror( code ) );
else
- qWarning( "%s", msg );
+ tqWarning( "%s", msg );
#endif
#else
Q_UNUSED( msg );
@@ -719,12 +719,12 @@ void qSystemWarning( const char* msg, int code )
\endcode
If \c b is zero, the Q_ASSERT statement will output the following
- message using the qWarning() function:
+ message using the tqWarning() function:
\code
ASSERT: "b != 0" in div.cpp (9)
\endcode
- \sa qWarning(), \link debug.html Debugging\endlink
+ \sa tqWarning(), \link debug.html Debugging\endlink
*/
@@ -748,7 +748,7 @@ void qSystemWarning( const char* msg, int code )
TQ_CHECK_PTR( a );
\endcode
- \sa qWarning(), \link debug.html Debugging\endlink
+ \sa tqWarning(), \link debug.html Debugging\endlink
*/
@@ -757,14 +757,14 @@ void qSystemWarning( const char* msg, int code )
//
#if (TQT_VERSION-0 >= 0x040000)
#if defined(Q_CC_GNU)
-#warning "Change TQ_CHECK_PTR to '{if ((p)==0) qt_check_pointer(__FILE__,__LINE__);}'"
-#warning "No need for qt_check_pointer() to return a value - make it void!"
+#warning "Change TQ_CHECK_PTR to '{if ((p)==0) tqt_check_pointer(__FILE__,__LINE__);}'"
+#warning "No need for tqt_check_pointer() to return a value - make it void!"
#endif
#endif
-bool qt_check_pointer( bool c, const char *n, int l )
+bool tqt_check_pointer( bool c, const char *n, int l )
{
if ( c )
- qWarning( "In file %s, line %d: Out of memory", n, l );
+ tqWarning( "In file %s, line %d: Out of memory", n, l );
return TRUE;
}
@@ -775,7 +775,7 @@ static bool firstObsoleteWarning(const char *obj, const char *oldfunc )
if ( !obsoleteDict ) { // first time func is called
obsoleteDict = new TQAsciiDict<int>;
#if defined(QT_DEBUG)
- qDebug(
+ tqDebug(
"You are using obsolete functions in the TQt library. Call the function\n"
"qSuppressObsoleteWarnings() to suppress obsolete warnings.\n"
);
@@ -793,44 +793,44 @@ static bool firstObsoleteWarning(const char *obj, const char *oldfunc )
static bool suppressObsolete = FALSE;
-void qSuppressObsoleteWarnings( bool suppress )
+void tqSuppressObsoleteWarnings( bool suppress )
{
suppressObsolete = suppress;
}
-void qObsolete( const char *obj, const char *oldfunc, const char *newfunc )
+void tqObsolete( const char *obj, const char *oldfunc, const char *newfunc )
{
if ( suppressObsolete )
return;
if ( !firstObsoleteWarning(obj, oldfunc) )
return;
if ( obj )
- qDebug( "%s::%s: This function is obsolete, use %s instead.",
+ tqDebug( "%s::%s: This function is obsolete, use %s instead.",
obj, oldfunc, newfunc );
else
- qDebug( "%s: This function is obsolete, use %s instead.",
+ tqDebug( "%s: This function is obsolete, use %s instead.",
oldfunc, newfunc );
}
-void qObsolete( const char *obj, const char *oldfunc )
+void tqObsolete( const char *obj, const char *oldfunc )
{
if ( suppressObsolete )
return;
if ( !firstObsoleteWarning(obj, oldfunc) )
return;
if ( obj )
- qDebug( "%s::%s: This function is obsolete.", obj, oldfunc );
+ tqDebug( "%s::%s: This function is obsolete.", obj, oldfunc );
else
- qDebug( "%s: This function is obsolete.", oldfunc );
+ tqDebug( "%s: This function is obsolete.", oldfunc );
}
-void qObsolete( const char *message )
+void tqObsolete( const char *message )
{
if ( suppressObsolete )
return;
if ( !firstObsoleteWarning( "TQt", message) )
return;
- qDebug( "%s", message );
+ tqDebug( "%s", message );
}
@@ -886,7 +886,7 @@ void qObsolete( const char *message )
}
\endcode
- \sa qDebug(), qWarning(), qFatal(), \link debug.html Debugging\endlink
+ \sa tqDebug(), tqWarning(), tqFatal(), \link debug.html Debugging\endlink
*/
TQtMsgHandler qInstallMsgHandler( TQtMsgHandler h )
diff --git a/src/tools/qgpluginmanager.cpp b/src/tools/qgpluginmanager.cpp
index 5c428f924..ac8a2eebe 100644
--- a/src/tools/qgpluginmanager.cpp
+++ b/src/tools/qgpluginmanager.cpp
@@ -501,12 +501,12 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib )
if ( !takeFirst ) {
useful = TRUE;
plugDict.replace( *f, plugin );
- qWarning("%s: Discarding feature %s in %s!",
+ tqWarning("%s: Discarding feature %s in %s!",
(const char*) TQFile::encodeName( plugin->library()),
(*f).latin1(),
(const char*) TQFile::encodeName( old->library() ) );
} else {
- qWarning("%s: Feature %s already defined in %s!",
+ tqWarning("%s: Feature %s already defined in %s!",
(const char*) TQFile::encodeName( old->library() ),
(*f).latin1(),
(const char*) TQFile::encodeName( plugin->library() ) );
diff --git a/src/tools/qgvector.cpp b/src/tools/qgvector.cpp
index 90bb88e07..af896ab72 100644
--- a/src/tools/qgvector.cpp
+++ b/src/tools/qgvector.cpp
@@ -236,7 +236,7 @@ bool TQGVector::insert( uint index, Item d ) // insert item at index
{
#if defined(QT_CHECK_RANGE)
if ( index >= len ) { // range error
- qWarning( "TQGVector::insert: Index %d out of range", index );
+ tqWarning( "TQGVector::insert: Index %d out of range", index );
return FALSE;
}
#endif
@@ -259,7 +259,7 @@ bool TQGVector::remove( uint index ) // remove item at index
{
#if defined(QT_CHECK_RANGE)
if ( index >= len ) { // range error
- qWarning( "TQGVector::remove: Index %d out of range", index );
+ tqWarning( "TQGVector::remove: Index %d out of range", index );
return FALSE;
}
#endif
@@ -275,7 +275,7 @@ TQPtrCollection::Item TQGVector::take( uint index ) // take out item
{
#if defined(QT_CHECK_RANGE)
if ( index >= len ) { // range error
- qWarning( "TQGVector::take: Index %d out of range", index );
+ tqWarning( "TQGVector::take: Index %d out of range", index );
return 0;
}
#endif
@@ -406,8 +406,8 @@ void TQGVector::sort() // sort vector
}
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &sort_vec ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &sort_vec ) : 0 );
#endif // QT_THREAD_SUPPORT
sort_vec = (TQGVector*)this;
@@ -421,7 +421,7 @@ int TQGVector::bsearch( Item d ) const // binary search; when sorted
return -1;
if ( !d ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQGVector::bsearch: Cannot search for null object" );
+ tqWarning( "TQGVector::bsearch: Cannot search for null object" );
#endif
return -1;
}
@@ -457,7 +457,7 @@ int TQGVector::findRef( Item d, uint index) const // find exact item in vector
{
#if defined(QT_CHECK_RANGE)
if ( index > len ) { // range error
- qWarning( "TQGVector::findRef: Index %d out of range", index );
+ tqWarning( "TQGVector::findRef: Index %d out of range", index );
return -1;
}
#endif
@@ -472,7 +472,7 @@ int TQGVector::find( Item d, uint index ) const // find equal item in vector
{
#if defined(QT_CHECK_RANGE)
if ( index >= len ) { // range error
- qWarning( "TQGVector::find: Index %d out of range", index );
+ tqWarning( "TQGVector::find: Index %d out of range", index );
return -1;
}
#endif
@@ -530,7 +530,7 @@ void TQGVector::toList( TQGList *list ) const // store items in list
void TQGVector::warningIndexRange( uint i )
{
#if defined(QT_CHECK_RANGE)
- qWarning( "TQGVector::operator[]: Index %d out of range", i );
+ tqWarning( "TQGVector::operator[]: Index %d out of range", i );
#else
Q_UNUSED( i )
#endif
diff --git a/src/tools/qiodevice.cpp b/src/tools/qiodevice.cpp
index 64c39915f..6e584ec45 100644
--- a/src/tools/qiodevice.cpp
+++ b/src/tools/qiodevice.cpp
@@ -431,7 +431,7 @@ void TQIODevice::setType( int t )
{
#if defined(QT_CHECK_RANGE)
if ( (t & IO_TypeMask) != t )
- qWarning( "TQIODevice::setType: Specified type out of range" );
+ tqWarning( "TQIODevice::setType: Specified type out of range" );
#endif
ioMode &= ~IO_TypeMask; // reset type bits
ioMode |= t;
@@ -447,7 +447,7 @@ void TQIODevice::setMode( int m )
{
#if defined(QT_CHECK_RANGE)
if ( (m & IO_ModeMask) != m )
- qWarning( "TQIODevice::setMode: Specified mode out of range" );
+ tqWarning( "TQIODevice::setMode: Specified mode out of range" );
#endif
ioMode &= ~IO_ModeMask; // reset mode bits
ioMode |= m;
@@ -463,7 +463,7 @@ void TQIODevice::setState( int s )
{
#if defined(QT_CHECK_RANGE)
if ( ((uint)s & IO_StateMask) != (uint)s )
- qWarning( "TQIODevice::setState: Specified state out of range" );
+ tqWarning( "TQIODevice::setState: Specified state out of range" );
#endif
ioMode &= ~IO_StateMask; // reset state bits
ioMode |= (uint)s;
@@ -569,9 +569,9 @@ bool TQIODevice::at( Offset pos )
#if defined(QT_CHECK_RANGE)
if ( pos > size() ) {
#if defined(QT_ABI_QT4)
- qWarning( "TQIODevice::at: Index %lld out of range", pos );
+ tqWarning( "TQIODevice::at: Index %lld out of range", pos );
#else
- qWarning( "TQIODevice::at: Index %lu out of range", pos );
+ tqWarning( "TQIODevice::at: Index %lu out of range", pos );
#endif
return FALSE;
}
diff --git a/src/tools/qlibrary.cpp b/src/tools/qlibrary.cpp
index a96e0c068..80a328d8b 100644
--- a/src/tools/qlibrary.cpp
+++ b/src/tools/qlibrary.cpp
@@ -342,13 +342,13 @@ bool TQLibrary::unload()
#if !defined(QT_NO_LIBRARY_UNLOAD)
if ( !d->freeLibrary() ) {
# if defined(QT_DEBUG_COMPONENT)
- qWarning( "%s could not be unloaded", (const char*) TQFile::encodeName(library()) );
+ tqWarning( "%s could not be unloaded", (const char*) TQFile::encodeName(library()) );
# endif
return FALSE;
}
# if defined(QT_DEBUG_COMPONENT) && QT_DEBUG_COMPONENT == 2
- qWarning( "%s has been unloaded", (const char*) TQFile::encodeName(library()) );
+ tqWarning( "%s has been unloaded", (const char*) TQFile::encodeName(library()) );
# endif
d->pHnd = 0;
#endif
diff --git a/src/tools/qlibrary_unix.cpp b/src/tools/qlibrary_unix.cpp
index 6ca49a37e..09962d283 100644
--- a/src/tools/qlibrary_unix.cpp
+++ b/src/tools/qlibrary_unix.cpp
@@ -68,7 +68,7 @@ bool TQLibraryPrivate::loadLibrary()
pHnd = (void*)shl_load( filename.latin1(), BIND_DEFERRED | BIND_NONFATAL | DYNAMIC_PATH, 0 );
#if defined(QT_DEBUG) || defined(QT_DEBUG_COMPONENT)
if ( !pHnd )
- qWarning( "%s: failed to load library!", filename.latin1() );
+ tqWarning( "%s: failed to load library!", filename.latin1() );
#endif
return pHnd != 0;
}
@@ -81,7 +81,7 @@ bool TQLibraryPrivate::freeLibrary()
if ( shl_unload( (shl_t)pHnd ) ) {
#if defined(QT_DEBUG) || defined(QT_DEBUG_COMPONENT)
TQString filename = library->library();
- qWarning( "%s: Failed to unload library!", filename.latin1() );
+ tqWarning( "%s: Failed to unload library!", filename.latin1() );
#endif
return FALSE;
}
@@ -98,7 +98,7 @@ void* TQLibraryPrivate::resolveSymbol( const char* symbol )
if ( shl_findsym( (shl_t*)&pHnd, symbol, TYPE_UNDEFINED, &address ) < 0 ) {
#if defined(QT_DEBUG_COMPONENT)
TQString filename = library->library();
- qWarning( "%s: couldn't resolve symbol \"%s\"", filename.latin1(), symbol );
+ tqWarning( "%s: couldn't resolve symbol \"%s\"", filename.latin1(), symbol );
#endif
}
return address;
@@ -120,7 +120,7 @@ bool TQLibraryPrivate::loadLibrary()
pHnd = DL_PREFIX(dlopen)( filename.latin1(), RTLD_LAZY );
#if defined(QT_DEBUG) || defined(QT_DEBUG_COMPONENT)
if ( !pHnd )
- qWarning( "%s", DL_PREFIX(dlerror)() );
+ tqWarning( "%s", DL_PREFIX(dlerror)() );
#endif
return pHnd != 0;
}
@@ -132,7 +132,7 @@ bool TQLibraryPrivate::freeLibrary()
if ( DL_PREFIX(dlclose)( pHnd ) ) {
#if defined(QT_DEBUG) || defined(QT_DEBUG_COMPONENT)
- qWarning( "%s", DL_PREFIX(dlerror)() );
+ tqWarning( "%s", DL_PREFIX(dlerror)() );
#endif
return FALSE;
}
@@ -159,7 +159,7 @@ void* TQLibraryPrivate::resolveSymbol( const char* symbol )
#if defined(QT_DEBUG_COMPONENT)
const char* error = DL_PREFIX(dlerror)();
if ( error )
- qWarning( "%s", error );
+ tqWarning( "%s", error );
#endif
return address;
}
diff --git a/src/tools/qlocale.cpp b/src/tools/qlocale.cpp
index ce2e1647b..3dabc3ee6 100644
--- a/src/tools/qlocale.cpp
+++ b/src/tools/qlocale.cpp
@@ -3071,7 +3071,7 @@ static char digitToCLocale(TQChar zero, TQChar d)
&& zero.unicode() + 10 > d.unicode())
return '0' + d.unicode() - zero.unicode();
- qWarning("TQLocalePrivate::digitToCLocale(): bad digit: row=%d, cell=%d", d.row(), d.cell());
+ tqWarning("TQLocalePrivate::digitToCLocale(): bad digit: row=%d, cell=%d", d.row(), d.cell());
return TQChar(0);
}
@@ -3246,7 +3246,7 @@ TQString TQLocalePrivate::doubleToString(double d,
#ifdef QT_QLOCALE_USES_FCVT
#ifdef QT_THREAD_SUPPORT
static bool dummy_for_mutex;
- TQMutex *fcvt_mutex = qt_global_mutexpool ? qt_global_mutexpool->get( &dummy_for_mutex ) : 0;
+ TQMutex *fcvt_mutex = tqt_global_mutexpool ? tqt_global_mutexpool->get( &dummy_for_mutex ) : 0;
# define FCVT_LOCK if (fcvt_mutex) fcvt_mutex->lock()
# define FCVT_UNLOCK if (fcvt_mutex) fcvt_mutex->unlock()
#else
diff --git a/src/tools/qmutex_unix.cpp b/src/tools/qmutex_unix.cpp
index 146edbec9..b69661ad1 100644
--- a/src/tools/qmutex_unix.cpp
+++ b/src/tools/qmutex_unix.cpp
@@ -119,7 +119,7 @@ TQMutexPrivate::~TQMutexPrivate()
#ifdef QT_CHECK_RANGE
if ( ret )
- qWarning( "Mutex destroy failure: %s", strerror( ret ) );
+ tqWarning( "Mutex destroy failure: %s", strerror( ret ) );
#endif
}
@@ -136,7 +136,7 @@ TQRealMutexPrivate::TQRealMutexPrivate(bool recurs)
#ifdef QT_CHECK_RANGE
if( ret )
- qWarning( "Mutex init failure: %s", strerror( ret ) );
+ tqWarning( "Mutex init failure: %s", strerror( ret ) );
#endif // QT_CHECK_RANGE
}
@@ -146,7 +146,7 @@ void TQRealMutexPrivate::lock()
#ifdef QT_CHECK_RANGE
if (ret)
- qWarning("Mutex lock failure: %s", strerror(ret));
+ tqWarning("Mutex lock failure: %s", strerror(ret));
#endif
}
@@ -156,7 +156,7 @@ void TQRealMutexPrivate::unlock()
#ifdef QT_CHECK_RANGE
if (ret)
- qWarning("Mutex unlock failure: %s", strerror(ret));
+ tqWarning("Mutex unlock failure: %s", strerror(ret));
#endif
}
@@ -168,7 +168,7 @@ bool TQRealMutexPrivate::locked()
return TRUE;
} else if (ret) {
#ifdef QT_CHECK_RANGE
- qWarning("Mutex locktest failure: %s", strerror(ret));
+ tqWarning("Mutex locktest failure: %s", strerror(ret));
#endif
} else
pthread_mutex_unlock(&handle);
@@ -184,7 +184,7 @@ bool TQRealMutexPrivate::trylock()
return FALSE;
} else if (ret) {
#ifdef QT_CHECK_RANGE
- qWarning("Mutex trylock failure: %s", strerror(ret));
+ tqWarning("Mutex trylock failure: %s", strerror(ret));
#endif
return FALSE;
}
@@ -210,7 +210,7 @@ TQRecursiveMutexPrivate::TQRecursiveMutexPrivate()
# ifdef QT_CHECK_RANGE
if (ret)
- qWarning( "Mutex init failure: %s", strerror(ret) );
+ tqWarning( "Mutex init failure: %s", strerror(ret) );
# endif
pthread_mutexattr_init(&attr);
@@ -219,7 +219,7 @@ TQRecursiveMutexPrivate::TQRecursiveMutexPrivate()
# ifdef QT_CHECK_RANGE
if (ret)
- qWarning( "Mutex init failure: %s", strerror(ret) );
+ tqWarning( "Mutex init failure: %s", strerror(ret) );
# endif
}
@@ -229,7 +229,7 @@ TQRecursiveMutexPrivate::~TQRecursiveMutexPrivate()
# ifdef QT_CHECK_RANGE
if (ret)
- qWarning( "Mutex destroy failure: %s", strerror(ret) );
+ tqWarning( "Mutex destroy failure: %s", strerror(ret) );
# endif
}
@@ -263,8 +263,8 @@ void TQRecursiveMutexPrivate::unlock()
}
} else {
#ifdef QT_CHECK_RANGE
- qWarning("TQMutex::unlock: unlock from different thread than locker");
- qWarning(" was locked by %d, unlock attempt from %d",
+ tqWarning("TQMutex::unlock: unlock from different thread than locker");
+ tqWarning(" was locked by %d, unlock attempt from %d",
(int)owner, (int)pthread_self());
#endif
}
@@ -284,7 +284,7 @@ bool TQRecursiveMutexPrivate::locked()
} else {
#ifdef QT_CHECK_RANGE
if (code)
- qWarning("Mutex trylock failure: %s", strerror(code));
+ tqWarning("Mutex trylock failure: %s", strerror(code));
#endif
pthread_mutex_unlock(&handle);
@@ -311,7 +311,7 @@ bool TQRecursiveMutexPrivate::trylock()
ret = FALSE;
} else if (code) {
#ifdef QT_CHECK_RANGE
- qWarning("Mutex trylock failure: %s", strerror(code));
+ tqWarning("Mutex trylock failure: %s", strerror(code));
#endif
ret = FALSE;
} else {
diff --git a/src/tools/qmutexpool.cpp b/src/tools/qmutexpool.cpp
index 48f1beeb4..5bc6cce2f 100644
--- a/src/tools/qmutexpool.cpp
+++ b/src/tools/qmutexpool.cpp
@@ -42,7 +42,7 @@
#include <ntqthread.h>
-Q_EXPORT TQMutexPool *qt_global_mutexpool = 0;
+Q_EXPORT TQMutexPool *tqt_global_mutexpool = 0;
/*!
diff --git a/src/tools/qmutexpool_p.h b/src/tools/qmutexpool_p.h
index 67bd23c03..e560c994c 100644
--- a/src/tools/qmutexpool_p.h
+++ b/src/tools/qmutexpool_p.h
@@ -73,7 +73,7 @@ private:
bool recurs;
};
-extern Q_EXPORT TQMutexPool *qt_global_mutexpool;
+extern Q_EXPORT TQMutexPool *tqt_global_mutexpool;
#endif // QT_THREAD_SUPPORT
diff --git a/src/tools/qregexp.cpp b/src/tools/qregexp.cpp
index 5338e6dbb..7330f4f1a 100644
--- a/src/tools/qregexp.cpp
+++ b/src/tools/qregexp.cpp
@@ -1516,49 +1516,49 @@ void TQRegExpEngine::heuristicallyChooseHeuristic()
void TQRegExpEngine::dump() const
{
int i, j;
- qDebug( "Case %ssensitive engine", cs ? "" : "in" );
- qDebug( " States" );
+ tqDebug( "Case %ssensitive engine", cs ? "" : "in" );
+ tqDebug( " States" );
for ( i = 0; i < ns; i++ ) {
- qDebug( " %d%s", i,
+ tqDebug( " %d%s", i,
i == InitialState ? " (initial)" :
i == FinalState ? " (final)" : "" );
#ifndef QT_NO_REGEXP_CAPTURE
- qDebug( " in atom %d", s[i]->atom );
+ tqDebug( " in atom %d", s[i]->atom );
#endif
int m = s[i]->match;
if ( (m & CharClassBit) != 0 ) {
- qDebug( " match character class %d", m ^ CharClassBit );
+ tqDebug( " match character class %d", m ^ CharClassBit );
#ifndef QT_NO_REGEXP_CCLASS
cl[m ^ CharClassBit]->dump();
#else
- qDebug( " negative character class" );
+ tqDebug( " negative character class" );
#endif
} else if ( (m & BackRefBit) != 0 ) {
- qDebug( " match back-reference %d", m ^ BackRefBit );
+ tqDebug( " match back-reference %d", m ^ BackRefBit );
} else if ( m >= 0x20 && m <= 0x7e ) {
- qDebug( " match 0x%.4x (%c)", m, m );
+ tqDebug( " match 0x%.4x (%c)", m, m );
} else {
- qDebug( " match 0x%.4x", m );
+ tqDebug( " match 0x%.4x", m );
}
for ( j = 0; j < (int) s[i]->outs.size(); j++ ) {
int next = s[i]->outs[j];
- qDebug( " -> %d", next );
+ tqDebug( " -> %d", next );
if ( s[i]->reenter != 0 && s[i]->reenter->contains(next) )
- qDebug( " [reenter %d]", (*s[i]->reenter)[next] );
+ tqDebug( " [reenter %d]", (*s[i]->reenter)[next] );
if ( s[i]->anchors != 0 && at(*s[i]->anchors, next) != 0 )
- qDebug( " [anchors 0x%.8x]", (*s[i]->anchors)[next] );
+ tqDebug( " [anchors 0x%.8x]", (*s[i]->anchors)[next] );
}
}
#ifndef QT_NO_REGEXP_CAPTURE
if ( nf > 0 ) {
- qDebug( " Atom Parent Capture" );
+ tqDebug( " Atom Parent Capture" );
for ( i = 0; i < nf; i++ )
- qDebug( " %6d %6d %6d", i, f[i].parent, f[i].capture );
+ tqDebug( " %6d %6d %6d", i, f[i].parent, f[i].capture );
}
#endif
#ifndef QT_NO_REGEXP_ANCHOR_ALT
for ( i = 0; i < (int) aa.size(); i++ )
- qDebug( " Anchor alternation 0x%.8x: 0x%.8x 0x%.9x", i, aa[i].a,
+ tqDebug( " Anchor alternation 0x%.8x: 0x%.8x 0x%.9x", i, aa[i].a,
aa[i].b );
#endif
}
@@ -2290,13 +2290,13 @@ bool TQRegExpEngine::CharClass::in( TQChar ch ) const
void TQRegExpEngine::CharClass::dump() const
{
int i;
- qDebug( " %stive character class", n ? "nega" : "posi" );
+ tqDebug( " %stive character class", n ? "nega" : "posi" );
#ifndef QT_NO_REGEXP_CCLASS
if ( c != 0 )
- qDebug( " categories 0x%.8x", c );
+ tqDebug( " categories 0x%.8x", c );
#endif
for ( i = 0; i < (int) r.size(); i++ )
- qDebug( " 0x%.4x through 0x%.4x", r[i].from, r[i].to );
+ tqDebug( " 0x%.4x through 0x%.4x", r[i].from, r[i].to );
}
#endif
#endif
@@ -2559,22 +2559,22 @@ void TQRegExpEngine::Box::setupHeuristics()
void TQRegExpEngine::Box::dump() const
{
int i;
- qDebug( "Box of at least %d character%s", minl, minl == 1 ? "" : "s" );
- qDebug( " Left states:" );
+ tqDebug( "Box of at least %d character%s", minl, minl == 1 ? "" : "s" );
+ tqDebug( " Left states:" );
for ( i = 0; i < (int) ls.size(); i++ ) {
if ( at(lanchors, ls[i]) == 0 )
- qDebug( " %d", ls[i] );
+ tqDebug( " %d", ls[i] );
else
- qDebug( " %d [anchors 0x%.8x]", ls[i], lanchors[ls[i]] );
+ tqDebug( " %d [anchors 0x%.8x]", ls[i], lanchors[ls[i]] );
}
- qDebug( " Right states:" );
+ tqDebug( " Right states:" );
for ( i = 0; i < (int) rs.size(); i++ ) {
if ( at(ranchors, rs[i]) == 0 )
- qDebug( " %d", rs[i] );
+ tqDebug( " %d", rs[i] );
else
- qDebug( " %d [anchors 0x%.8x]", rs[i], ranchors[rs[i]] );
+ tqDebug( " %d [anchors 0x%.8x]", rs[i], ranchors[rs[i]] );
}
- qDebug( " Skip anchors: 0x%.8x", skipanchors );
+ tqDebug( " Skip anchors: 0x%.8x", skipanchors );
}
#endif
diff --git a/src/tools/qsemaphore.cpp b/src/tools/qsemaphore.cpp
index 52fbd2765..ed3c328be 100644
--- a/src/tools/qsemaphore.cpp
+++ b/src/tools/qsemaphore.cpp
@@ -178,7 +178,7 @@ int TQSemaphore::operator+=(int n)
if ( n < 0 || n > d->max ) {
#ifdef QT_CHECK_RANGE
- qWarning( "TQSemaphore::operator+=: paramter %d out of range", n );
+ tqWarning( "TQSemaphore::operator+=: paramter %d out of range", n );
#endif // QT_CHECK_RANGE
n = n < 0 ? 0 : d->max;
}
@@ -201,7 +201,7 @@ int TQSemaphore::operator-=(int n)
if ( n < 0 || n > d->value ) {
#ifdef QT_CHECK_RANGE
- qWarning( "TQSemaphore::operator-=: paramter %d out of range", n );
+ tqWarning( "TQSemaphore::operator-=: paramter %d out of range", n );
#endif // QT_CHECK_RANGE
n = n < 0 ? 0 : d->value;
}
diff --git a/src/tools/qsettings.cpp b/src/tools/qsettings.cpp
index 640d5643c..d5e9f81c0 100644
--- a/src/tools/qsettings.cpp
+++ b/src/tools/qsettings.cpp
@@ -345,7 +345,7 @@ void TQSettingsHeading::read(const TQString &filename)
TQFile file(filename);
if (! file.open(IO_ReadOnly)) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: failed to open file '%s'", filename.latin1());
+ tqWarning("TQSettings: failed to open file '%s'", filename.latin1());
#endif
return;
}
@@ -391,7 +391,7 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
} else {
if (git == end()) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: line '%s' out of group", line.latin1());
+ tqWarning("TQSettings: line '%s' out of group", line.latin1());
#endif
return;
}
@@ -399,7 +399,7 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
int i = line.find('=');
if (i == -1) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: malformed line '%s' in group '%s'",
+ tqWarning("TQSettings: malformed line '%s' in group '%s'",
line.latin1(), git.key().latin1());
#endif
return;
@@ -430,7 +430,7 @@ void TQSettingsHeading::parseLine(TQTextStream &stream)
// still escaped at EOL - manually escaped "newline"
if (stream.atEnd()) {
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: reached end of file, expected continued line");
+ tqWarning("TQSettings: reached end of file, expected continued line");
#endif
break;
}
@@ -503,13 +503,13 @@ TQSettingsPrivate::TQSettingsPrivate( TQSettings::Format format )
} );
#endif // Q_OS_TEMP
#else
- defPath = qInstallPathSysconf();
+ defPath = tqInstallPathSysconf();
#endif
TQDir dir(appSettings);
if (! dir.exists()) {
if (! dir.mkdir(dir.path()))
#if defined(QT_CHECK_STATE)
- qWarning("TQSettings: error creating %s", dir.path().latin1());
+ tqWarning("TQSettings: error creating %s", dir.path().latin1());
#else
;
#endif
@@ -804,7 +804,7 @@ void TQSettings::insertSearchPath( System s, const TQString &path)
if ( !qt_verify_key( path ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
+ tqWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
#endif
return;
}
@@ -844,7 +844,7 @@ void TQSettings::removeSearchPath( System s, const TQString &path)
{
if ( !qt_verify_key( path ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
+ tqWarning( "TQSettings::insertSearchPath: Invalid key: '%s'", path.isNull() ? "(null)" : path.latin1() );
#endif
return;
}
@@ -985,7 +985,7 @@ bool TQSettings::sync()
if ( filename.isEmpty() ) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::sync: filename is null/empty");
+ tqWarning("TQSettings::sync: filename is null/empty");
#endif // QT_CHECK_STATE
success = FALSE;
@@ -1000,7 +1000,7 @@ bool TQSettings::sync()
if (! file.open(IO_WriteOnly)) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::sync: failed to open '%s' for writing",
+ tqWarning("TQSettings::sync: failed to open '%s' for writing",
file.name().latin1());
#endif // QT_CHECK_STATE
@@ -1041,7 +1041,7 @@ bool TQSettings::sync()
if (file.status() != IO_Ok) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::sync: error at end of write");
+ tqWarning("TQSettings::sync: error at end of write");
#endif // QT_CHECK_STATE
success = FALSE;
@@ -1055,7 +1055,7 @@ bool TQSettings::sync()
!dir.rename( file.name(), filename, TRUE ) ) {
#ifdef QT_CHECK_STATE
- qWarning( "TQSettings::sync: error writing file '%s'",
+ tqWarning( "TQSettings::sync: error writing file '%s'",
TQFile::encodeName( filename ).data() );
#endif // QT_CHECK_STATE
@@ -1096,7 +1096,7 @@ bool TQSettings::readBoolEntry(const TQString &key, bool def, bool *ok )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readBoolEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readBoolEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1121,7 +1121,7 @@ bool TQSettings::readBoolEntry(const TQString &key, bool def, bool *ok )
return FALSE;
if (! value.isEmpty())
- qWarning("TQSettings::readBoolEntry: '%s' is not 'true' or 'false'",
+ tqWarning("TQSettings::readBoolEntry: '%s' is not 'true' or 'false'",
value.latin1());
if ( ok )
*ok = FALSE;
@@ -1148,7 +1148,7 @@ double TQSettings::readDoubleEntry(const TQString &key, double def, bool *ok )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readDoubleEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readDoubleEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1167,7 +1167,7 @@ double TQSettings::readDoubleEntry(const TQString &key, double def, bool *ok )
if ( conv_ok )
return retval;
if ( ! value.isEmpty() )
- qWarning( "TQSettings::readDoubleEntry: '%s' is not a number",
+ tqWarning( "TQSettings::readDoubleEntry: '%s' is not a number",
value.latin1() );
if ( ok )
*ok = FALSE;
@@ -1194,7 +1194,7 @@ int TQSettings::readNumEntry(const TQString &key, int def, bool *ok )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readNumEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readNumEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1212,7 +1212,7 @@ int TQSettings::readNumEntry(const TQString &key, int def, bool *ok )
if ( conv_ok )
return retval;
if ( ! value.isEmpty() )
- qWarning( "TQSettings::readNumEntry: '%s' is not a number",
+ tqWarning( "TQSettings::readNumEntry: '%s' is not a number",
value.latin1() );
if ( ok )
*ok = FALSE;
@@ -1239,7 +1239,7 @@ TQString TQSettings::readEntry(const TQString &key, const TQString &def, bool *o
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::readEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::readEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
if ( ok )
*ok = FALSE;
@@ -1263,7 +1263,7 @@ TQString TQSettings::readEntry(const TQString &key, const TQString &def, bool *o
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::readEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::readEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
if ( ok )
*ok = FALSE;
@@ -1321,7 +1321,7 @@ bool TQSettings::writeEntry(const TQString &key, bool value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1352,7 +1352,7 @@ bool TQSettings::writeEntry(const TQString &key, double value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1382,7 +1382,7 @@ bool TQSettings::writeEntry(const TQString &key, int value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1435,7 +1435,7 @@ bool TQSettings::writeEntry(const TQString &key, const TQString &value)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::writeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1454,7 +1454,7 @@ bool TQSettings::writeEntry(const TQString &key, const TQString &value)
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::writeEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::writeEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return FALSE;
@@ -1498,7 +1498,7 @@ bool TQSettings::removeEntry(const TQString &key)
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::removeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::removeEntry: Invalid key: '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return FALSE;
}
@@ -1515,7 +1515,7 @@ bool TQSettings::removeEntry(const TQString &key)
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::removeEntry: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::removeEntry: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return FALSE;
@@ -1578,7 +1578,7 @@ TQStringList TQSettings::entryList(const TQString &key) const
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::entryList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::entryList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return TQStringList();
}
@@ -1595,7 +1595,7 @@ TQStringList TQSettings::entryList(const TQString &key) const
if (list.count() < 1) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::listEntries: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::listEntries: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return TQStringList();
@@ -1686,7 +1686,7 @@ TQStringList TQSettings::subkeyList(const TQString &key) const
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::subkeyList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::subkeyList: Invalid key: %s", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return TQStringList();
}
@@ -1704,7 +1704,7 @@ TQStringList TQSettings::subkeyList(const TQString &key) const
if (list.count() < 1) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::subkeyList: invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::subkeyList: invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return TQStringList();
@@ -1781,7 +1781,7 @@ TQDateTime TQSettings::lastModificationTime( const TQString &key )
TQString grp_key( groupKey( group(), key ) );
if ( !qt_verify_key( grp_key ) ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQSettings::lastModificationTime: Invalid key '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
+ tqWarning( "TQSettings::lastModificationTime: Invalid key '%s'", grp_key.isNull() ? "(null)" : grp_key.latin1() );
#endif
return TQDateTime();
}
@@ -1797,7 +1797,7 @@ TQDateTime TQSettings::lastModificationTime( const TQString &key )
if (list.count() < 2) {
#ifdef QT_CHECK_STATE
- qWarning("TQSettings::lastModificationTime: Invalid key '%s'", grp_key.latin1());
+ tqWarning("TQSettings::lastModificationTime: Invalid key '%s'", grp_key.latin1());
#endif // QT_CHECK_STATE
return TQDateTime();
@@ -2030,7 +2030,7 @@ void TQSettings::setPath( const TQString &domain, const TQString &product, Scope
if (scope == User)
actualSearchPath = TQDir::homeDirPath() + "/.";
else
- actualSearchPath = TQString(qInstallPathSysconf()) + "/";
+ actualSearchPath = TQString(tqInstallPathSysconf()) + "/";
actualSearchPath += domain.mid( 0, lastDot ) + "/" + product;
insertSearchPath( Unix, actualSearchPath );
#endif
diff --git a/src/tools/qstring.cpp b/src/tools/qstring.cpp
index 756f12477..bb521868c 100644
--- a/src/tools/qstring.cpp
+++ b/src/tools/qstring.cpp
@@ -1986,7 +1986,7 @@ static TQString replaceArgEscapes(const TQString &s, const ArgEscapeData &d, int
differ between languages.
If there is no place marker (\c %1, \c %2, etc.), a warning
- message (qWarning()) is output and the result is undefined.
+ message (tqWarning()) is output and the result is undefined.
\warning If any placeholder occurs more than once, the result is undefined.
@@ -1996,7 +1996,7 @@ TQString TQString::arg( const TQString& a, int fieldWidth ) const
ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
- qWarning( "TQString::arg(): Argument missing: %s, %s", latin1(),
+ tqWarning( "TQString::arg(): Argument missing: %s, %s", latin1(),
a.latin1() );
return *this;
}
@@ -2103,7 +2103,7 @@ TQString TQString::arg( Q_LLONG a, int fieldWidth, int base ) const
ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
- qWarning( "TQString::arg(): Argument missing: %s, %lld", latin1(),
+ tqWarning( "TQString::arg(): Argument missing: %s, %lld", latin1(),
a );
return *this;
}
@@ -2133,7 +2133,7 @@ TQString TQString::arg( Q_ULLONG a, int fieldWidth, int base ) const
ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
- qWarning( "TQString::arg(): Argument missing: %s, %llu", latin1(),
+ tqWarning( "TQString::arg(): Argument missing: %s, %llu", latin1(),
a );
return *this;
}
@@ -2249,7 +2249,7 @@ TQString TQString::arg( double a, int fieldWidth, char fmt, int prec ) const
ArgEscapeData d = findArgEscapes(*this);
if (d.occurrences == 0) {
- qWarning( "TQString::arg(): Argument missing: %s, %g", latin1(),
+ tqWarning( "TQString::arg(): Argument missing: %s, %g", latin1(),
a );
return *this;
}
@@ -2281,7 +2281,7 @@ TQString TQString::arg( double a, int fieldWidth, char fmt, int prec ) const
break;
default:
#if defined(QT_CHECK_RANGE)
- qWarning( "TQString::setNum: Invalid format char '%c'", fmt );
+ tqWarning( "TQString::setNum: Invalid format char '%c'", fmt );
#endif
break;
}
@@ -2329,7 +2329,7 @@ TQString TQString::multiArg( int numArgs, const TQString& a1, const TQString& a2
} while ( lastDigit < 10 && digitUsed[lastDigit] == 0 );
if ( lastDigit == 10 ) {
- qWarning( "TQString::arg(): Argument missing: %s, %s",
+ tqWarning( "TQString::arg(): Argument missing: %s, %s",
latin1(), args[i]->latin1() );
numArgs = i;
lastDigit = 9;
@@ -4735,7 +4735,7 @@ Q_LLONG TQString::toLongLong( bool *ok, int base ) const
{
#if defined(QT_CHECK_RANGE)
if ( base != 0 && (base < 2 || base > 36) ) {
- qWarning( "TQString::toLongLong: Invalid base (%d)", base );
+ tqWarning( "TQString::toLongLong: Invalid base (%d)", base );
base = 10;
}
#endif
@@ -4825,7 +4825,7 @@ Q_ULLONG TQString::toULongLong( bool *ok, int base ) const
{
#if defined(QT_CHECK_RANGE)
if ( base != 0 && (base < 2 || base > 36) ) {
- qWarning( "TQString::toULongLong: Invalid base %d", base );
+ tqWarning( "TQString::toULongLong: Invalid base %d", base );
base = 10;
}
#endif
@@ -5153,7 +5153,7 @@ TQString &TQString::setNum( Q_LLONG n, int base )
{
#if defined(QT_CHECK_RANGE)
if ( base < 2 || base > 36 ) {
- qWarning( "TQString::setNum: Invalid base %d", base );
+ tqWarning( "TQString::setNum: Invalid base %d", base );
base = 10;
}
#endif
@@ -5175,7 +5175,7 @@ TQString &TQString::setNum( Q_ULLONG n, int base )
{
#if defined(QT_CHECK_RANGE)
if ( base < 2 || base > 36 ) {
- qWarning( "TQString::setNum: Invalid base %d", base );
+ tqWarning( "TQString::setNum: Invalid base %d", base );
base = 10;
}
#endif
@@ -5282,7 +5282,7 @@ TQString &TQString::setNum( double n, char f, int prec )
break;
default:
#if defined(QT_CHECK_RANGE)
- qWarning( "TQString::setNum: Invalid format char '%c'", f );
+ tqWarning( "TQString::setNum: Invalid format char '%c'", f );
#endif
break;
}
@@ -7128,7 +7128,7 @@ TQCString qt_winTQString2MB( const TQString& s, int uclen )
} else {
#ifndef QT_NO_DEBUG
// Fail.
- qWarning("WideCharToMultiByte cannot convert multibyte text (error %d): %s (UTF8)",
+ tqWarning("WideCharToMultiByte cannot convert multibyte text (error %d): %s (UTF8)",
r, s.utf8().data());
#endif
break;
@@ -7154,7 +7154,7 @@ TQString qt_winMB2TQString( const char* mb, int mblen )
int r = GetLastError();
if ( r == ERROR_INSUFFICIENT_BUFFER ) {
if ( wc != wc_auto ) {
- qWarning("Size changed in MultiByteToWideChar");
+ tqWarning("Size changed in MultiByteToWideChar");
break;
} else {
wclen = MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED,
@@ -7164,7 +7164,7 @@ TQString qt_winMB2TQString( const char* mb, int mblen )
}
} else {
// Fail.
- qWarning("MultiByteToWideChar cannot convert multibyte text");
+ tqWarning("MultiByteToWideChar cannot convert multibyte text");
break;
}
}
diff --git a/src/tools/qtextstream.cpp b/src/tools/qtextstream.cpp
index e3633600f..e5ccf8bad 100644
--- a/src/tools/qtextstream.cpp
+++ b/src/tools/qtextstream.cpp
@@ -185,7 +185,7 @@
#if defined(QT_CHECK_STATE)
#undef CHECK_STREAM_PRECOND
#define CHECK_STREAM_PRECOND if ( !dev ) { \
- qWarning( "TQTextStream: No device" ); \
+ tqWarning( "TQTextStream: No device" ); \
return *this; }
#else
#define CHECK_STREAM_PRECOND
@@ -327,13 +327,13 @@ bool TQStringBuffer::open( int m )
{
if ( !s ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQStringBuffer::open: No string" );
+ tqWarning( "TQStringBuffer::open: No string" );
#endif
return FALSE;
}
if ( isOpen() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQStringBuffer::open: Buffer already open" );
+ tqWarning( "TQStringBuffer::open: Buffer already open" );
#endif
return FALSE;
}
@@ -377,16 +377,16 @@ bool TQStringBuffer::at( Offset pos )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "TQStringBuffer::at: Buffer is not open" );
+ tqWarning( "TQStringBuffer::at: Buffer is not open" );
return FALSE;
}
#endif
if ( pos >= s->length()*2 ) {
#if defined(QT_CHECK_RANGE)
#if defined(QT_ABI_QT4)
- qWarning( "TQStringBuffer::at: Index %lld out of range", pos );
+ tqWarning( "TQStringBuffer::at: Index %lld out of range", pos );
#else
- qWarning( "TQStringBuffer::at: Index %lu out of range", pos );
+ tqWarning( "TQStringBuffer::at: Index %lu out of range", pos );
#endif
#endif
return FALSE;
@@ -401,11 +401,11 @@ Q_LONG TQStringBuffer::readBlock( char *p, Q_ULONG len )
#if defined(QT_CHECK_STATE)
TQ_CHECK_PTR( p );
if ( !isOpen() ) {
- qWarning( "TQStringBuffer::readBlock: Buffer not open" );
+ tqWarning( "TQStringBuffer::readBlock: Buffer not open" );
return -1;
}
if ( !isReadable() ) {
- qWarning( "TQStringBuffer::readBlock: Read operation not permitted" );
+ tqWarning( "TQStringBuffer::readBlock: Read operation not permitted" );
return -1;
}
#endif
@@ -427,23 +427,23 @@ Q_LONG TQStringBuffer::writeBlock( const char *p, Q_ULONG len )
{
#if defined(QT_CHECK_NULL)
if ( p == 0 && len != 0 )
- qWarning( "TQStringBuffer::writeBlock: Null pointer error" );
+ tqWarning( "TQStringBuffer::writeBlock: Null pointer error" );
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "TQStringBuffer::writeBlock: Buffer not open" );
+ tqWarning( "TQStringBuffer::writeBlock: Buffer not open" );
return -1;
}
if ( !isWritable() ) {
- qWarning( "TQStringBuffer::writeBlock: Write operation not permitted" );
+ tqWarning( "TQStringBuffer::writeBlock: Write operation not permitted" );
return -1;
}
if ( ioIndex&1 ) {
- qWarning( "TQStringBuffer::writeBlock: non-even index - non Unicode" );
+ tqWarning( "TQStringBuffer::writeBlock: non-even index - non Unicode" );
return -1;
}
if ( len&1 ) {
- qWarning( "TQStringBuffer::writeBlock: non-even length - non Unicode" );
+ tqWarning( "TQStringBuffer::writeBlock: non-even length - non Unicode" );
return -1;
}
#endif
@@ -456,11 +456,11 @@ int TQStringBuffer::getch()
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "TQStringBuffer::getch: Buffer not open" );
+ tqWarning( "TQStringBuffer::getch: Buffer not open" );
return -1;
}
if ( !isReadable() ) {
- qWarning( "TQStringBuffer::getch: Read operation not permitted" );
+ tqWarning( "TQStringBuffer::getch: Read operation not permitted" );
return -1;
}
#endif
@@ -484,11 +484,11 @@ int TQStringBuffer::ungetch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "TQStringBuffer::ungetch: Buffer not open" );
+ tqWarning( "TQStringBuffer::ungetch: Buffer not open" );
return -1;
}
if ( !isReadable() ) {
- qWarning( "TQStringBuffer::ungetch: Read operation not permitted" );
+ tqWarning( "TQStringBuffer::ungetch: Read operation not permitted" );
return -1;
}
#endif
@@ -1702,7 +1702,7 @@ TQString TQTextStream::readLine()
{
#if defined(QT_CHECK_STATE)
if ( !dev ) {
- qWarning( "TQTextStream::readLine: No device" );
+ tqWarning( "TQTextStream::readLine: No device" );
return TQString::null;
}
#endif
@@ -1785,7 +1785,7 @@ TQString TQTextStream::read()
{
#if defined(QT_CHECK_STATE)
if ( !dev ) {
- qWarning( "TQTextStream::read: No device" );
+ tqWarning( "TQTextStream::read: No device" );
return TQString::null;
}
#endif
diff --git a/src/tools/qthreadstorage_unix.cpp b/src/tools/qthreadstorage_unix.cpp
index 05b86b954..df4c3866f 100644
--- a/src/tools/qthreadstorage_unix.cpp
+++ b/src/tools/qthreadstorage_unix.cpp
@@ -80,7 +80,7 @@ TQThreadStorageData::TQThreadStorageData( void (*func)( void * ) )
thread_storage_usage[id].func = func;
#ifdef TQTHREADSTORAGE_DEBUG
- qDebug( "TQThreadStorageData: allocated id %d", id );
+ tqDebug( "TQThreadStorageData: allocated id %d", id );
#endif // TQTHREADSTORAGE_DEBUG
pthread_mutex_unlock( &thread_storage_mutex );
@@ -93,7 +93,7 @@ TQThreadStorageData::~TQThreadStorageData()
thread_storage_usage[id].func = 0;
#ifdef TQTHREADSTORAGE_DEBUG
- qDebug( "TQThreadStorageData: released id %d", id );
+ tqDebug( "TQThreadStorageData: released id %d", id );
#endif // TQTHREADSTORAGE_DEBUG
pthread_mutex_unlock( &thread_storage_mutex );
@@ -103,7 +103,7 @@ void **TQThreadStorageData::get() const
{
TQThreadInstance *d = TQThreadInstance::current();
if (!d) {
- qWarning("TQThreadStorage can only be used with threads started with TQThread");
+ tqWarning("TQThreadStorage can only be used with threads started with TQThread");
return 0;
}
TQMutexLocker locker( d->mutex() );
@@ -114,13 +114,13 @@ void **TQThreadStorageData::set( void *p )
{
TQThreadInstance *d = TQThreadInstance::current();
if (!d) {
- qWarning("TQThreadStorage can only be used with threads started with TQThread");
+ tqWarning("TQThreadStorage can only be used with threads started with TQThread");
return 0;
}
TQMutexLocker locker( d->mutex() );
if ( !d->thread_storage ) {
#ifdef TQTHREADSTORAGE_DEBUG
- qDebug( "TQThreadStorageData: allocating storage for thread %lx",
+ tqDebug( "TQThreadStorageData: allocating storage for thread %lx",
(unsigned long) pthread_self() );
#endif // TQTHREADSTORAGE_DEBUG
@@ -142,7 +142,7 @@ void TQThreadStorageData::finish( void **thread_storage )
if ( ! thread_storage ) return; // nothing to do
#ifdef TQTHREADSTORAGE_DEBUG
- qDebug( "TQThreadStorageData: destroying storage for thread %lx",
+ tqDebug( "TQThreadStorageData: destroying storage for thread %lx",
(unsigned long) pthread_self() );
#endif // TQTHREADSTORAGE_DEBUG
@@ -150,7 +150,7 @@ void TQThreadStorageData::finish( void **thread_storage )
if ( ! thread_storage[i] ) continue;
if ( ! thread_storage_usage[i].used ) {
#ifdef QT_CHECK_STATE
- qWarning( "TQThreadStorage: thread %lx exited after TQThreadStorage destroyed",
+ tqWarning( "TQThreadStorage: thread %lx exited after TQThreadStorage destroyed",
(unsigned long) pthread_self() );
#endif // QT_CHECK_STATE
continue;
diff --git a/src/tools/qucom.cpp b/src/tools/qucom.cpp
index e05893bed..6035d6622 100644
--- a/src/tools/qucom.cpp
+++ b/src/tools/qucom.cpp
@@ -514,7 +514,7 @@ bool TQUType_TQString::convertTo( TQUObject *o, TQUType *t )
{
TQString *str = (TQString *)o->payload.ptr;
if ( isEqual( t, &static_QUType_charstar ) ) {
- o->payload.charstar.ptr = qstrdup( str->local8Bit().data() );
+ o->payload.charstar.ptr = tqstrdup( str->local8Bit().data() );
o->payload.charstar.owner = TRUE;
o->type = &static_QUType_charstar;
} else if ( isEqual( t, &static_QUType_int ) ) {
diff --git a/src/tools/qwaitcondition_unix.cpp b/src/tools/qwaitcondition_unix.cpp
index 2f1e5b98a..2d985332b 100644
--- a/src/tools/qwaitcondition_unix.cpp
+++ b/src/tools/qwaitcondition_unix.cpp
@@ -153,7 +153,7 @@ TQWaitCondition::TQWaitCondition()
#ifdef QT_CHECK_RANGE
if (ret)
- qWarning( "Wait condition init failure: %s", strerror( ret ) );
+ tqWarning( "Wait condition init failure: %s", strerror( ret ) );
#endif
}
@@ -167,7 +167,7 @@ TQWaitCondition::~TQWaitCondition()
if (ret) {
#ifdef QT_CHECK_RANGE
- qWarning( "Wait condition destroy failure: %s", strerror( ret ) );
+ tqWarning( "Wait condition destroy failure: %s", strerror( ret ) );
#endif
// seems we have threads waiting on us, lets wake them up
@@ -190,7 +190,7 @@ void TQWaitCondition::wakeOne()
#ifdef QT_CHECK_RANGE
if (ret)
- qWarning("Wait condition wakeOne failure: %s", strerror(ret));
+ tqWarning("Wait condition wakeOne failure: %s", strerror(ret));
#endif
}
@@ -207,7 +207,7 @@ void TQWaitCondition::wakeAll()
#ifdef QT_CHECK_RANGE
if (ret)
- qWarning("Wait condition wakeAll failure: %s", strerror(ret));
+ tqWarning("Wait condition wakeAll failure: %s", strerror(ret));
#endif
}
@@ -246,7 +246,7 @@ bool TQWaitCondition::wait(unsigned long time)
#ifdef QT_CHECK_RANGE
if (ret && ret != ETIMEDOUT)
- qWarning("Wait condition wait failure: %s",strerror(ret));
+ tqWarning("Wait condition wait failure: %s",strerror(ret));
#endif
pthread_mutex_unlock( &mutex );
@@ -285,7 +285,7 @@ bool TQWaitCondition::wait(TQMutex *mutex, unsigned long time)
if (mutex->d->type() == Q_MUTEX_RECURSIVE) {
#ifdef QT_CHECK_RANGE
- qWarning("Wait condition warning: using recursive mutexes with\n"
+ tqWarning("Wait condition warning: using recursive mutexes with\n"
" wait conditions is undefined!");
#endif
return FALSE;
@@ -307,7 +307,7 @@ bool TQWaitCondition::wait(TQMutex *mutex, unsigned long time)
#ifdef QT_CHECK_RANGE
if (ret && ret != ETIMEDOUT)
- qWarning("Wait condition wait failure: %s",strerror(ret));
+ tqWarning("Wait condition wait failure: %s",strerror(ret));
#endif
return (ret == 0);