summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/shared/uib.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/shared/uib.h')
-rw-r--r--kdevdesigner/shared/uib.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/kdevdesigner/shared/uib.h b/kdevdesigner/shared/uib.h
index 00adac13..0a7063a4 100644
--- a/kdevdesigner/shared/uib.h
+++ b/kdevdesigner/shared/uib.h
@@ -27,7 +27,7 @@
#ifndef UIB_H
#define UIB_H
-#include <qdatastream.h>
+#include <tqdatastream.h>
const Q_UINT32 UibMagic = 0xb77c61d8;
@@ -68,22 +68,22 @@ public:
UibStrTable();
inline int insertCString( const char *cstr );
- inline int insertString( const QString& str );
- inline void readBlock( QDataStream& in, int size );
+ inline int insertString( const TQString& str );
+ inline void readBlock( TQDataStream& in, int size );
inline const char *asCString( int offset ) const;
- inline QString asString( int offset ) const;
- inline QByteArray block() const;
+ inline TQString asString( int offset ) const;
+ inline TQByteArray block() const;
private:
- QCString table;
- QDataStream out;
+ TQCString table;
+ TQDataStream out;
int start;
};
/*
uic uses insertCString(), insertString(), and block();
- QWidgetFactory uses readBlock(), asCString(), and asString(). By
+ TQWidgetFactory uses readBlock(), asCString(), and asString(). By
implementing these functions inline, we ensure that the binaries
don't contain needless code.
*/
@@ -106,9 +106,9 @@ inline int UibStrTable::insertCString( const char *cstr )
}
}
-inline int UibStrTable::insertString( const QString& str )
+inline int UibStrTable::insertString( const TQString& str )
{
- if ( str.contains('\0') || str[0] == QChar(0x7f) ) {
+ if ( str.contains('\0') || str[0] == TQChar(0x7f) ) {
int nextPos = table.size();
out << (Q_UINT8) 0x7f;
out << str;
@@ -118,22 +118,22 @@ inline int UibStrTable::insertString( const QString& str )
}
}
-inline void UibStrTable::readBlock( QDataStream& in, int size )
+inline void UibStrTable::readBlock( TQDataStream& in, int size )
{
table.resize( start + size );
in.readRawBytes( table.data() + start, size );
}
-inline QString UibStrTable::asString( int offset ) const
+inline TQString UibStrTable::asString( int offset ) const
{
if ( table[offset] == 0x7f ) {
- QDataStream in( table, IO_ReadOnly );
+ TQDataStream in( table, IO_ReadOnly );
in.device()->at( offset + 1 );
- QString str;
+ TQString str;
in >> str;
return str;
} else {
- return QString::fromUtf8( asCString(offset) );
+ return TQString::fromUtf8( asCString(offset) );
}
}
@@ -142,9 +142,9 @@ inline const char *UibStrTable::asCString( int offset ) const
return table.data() + offset;
}
-inline QByteArray UibStrTable::block() const
+inline TQByteArray UibStrTable::block() const
{
- QByteArray block;
+ TQByteArray block;
block.duplicate( table.data() + start, table.size() - start );
return block;
}