diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/interfaces/hashedstring.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/interfaces/hashedstring.h')
-rw-r--r-- | lib/interfaces/hashedstring.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/interfaces/hashedstring.h b/lib/interfaces/hashedstring.h index e62ab2e3..ac0d2e67 100644 --- a/lib/interfaces/hashedstring.h +++ b/lib/interfaces/hashedstring.h @@ -15,8 +15,8 @@ #ifndef HASHED_STRING_H #define HASHED_STRING_H -#include<qstring.h> -#include<qdatastream.h> +#include<tqstring.h> +#include<tqdatastream.h> #include<ksharedptr.h> #include<set> #include <ext/hash_map> @@ -27,7 +27,7 @@ class HashedString { public: HashedString() : m_hash( 0 ) {} - HashedString( const QString& str ) : m_str( str ) { + HashedString( const TQString& str ) : m_str( str ) { initHash(); } @@ -39,7 +39,7 @@ class HashedString { return m_hash; } - QString str() const { + TQString str() const { return m_str; } @@ -58,21 +58,21 @@ class HashedString { return false; } - static size_t hashString( const QString& str ); + static size_t hashString( const TQString& str ); private: void initHash(); - QString m_str; + TQString m_str; size_t m_hash; - friend QDataStream& operator << ( QDataStream& stream, const HashedString& str ); - friend QDataStream& operator >> ( QDataStream& stream, HashedString& str ); + friend TQDataStream& operator << ( TQDataStream& stream, const HashedString& str ); + friend TQDataStream& operator >> ( TQDataStream& stream, HashedString& str ); }; -QDataStream& operator << ( QDataStream& stream, const HashedString& str ); +TQDataStream& operator << ( TQDataStream& stream, const HashedString& str ); -QDataStream& operator >> ( QDataStream& stream, HashedString& str ); +TQDataStream& operator >> ( TQDataStream& stream, HashedString& str ); class HashedStringSetData; class HashedStringSetGroup; @@ -107,8 +107,8 @@ class HashedStringSet { bool operator == ( const HashedStringSet& rhs ) const; - void read( QDataStream& stream ); - void write( QDataStream& stream ) const; + void read( TQDataStream& stream ); + void write( TQDataStream& stream ) const; std::string print() const; |