summaryrefslogtreecommitdiffstats
path: root/kode/enum.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kode/enum.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode/enum.cpp')
-rw-r--r--kode/enum.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kode/enum.cpp b/kode/enum.cpp
index 3d8ac6081..64bf8f790 100644
--- a/kode/enum.cpp
+++ b/kode/enum.cpp
@@ -28,22 +28,22 @@ Enum::Enum()
{
}
-Enum::Enum( const QString &name, const QStringList &enums, bool combinable )
+Enum::Enum( const TQString &name, const TQStringList &enums, bool combinable )
: mName( name ), mEnums( enums ), mCombinable( combinable )
{
}
-QString Enum::declaration() const
+TQString Enum::declaration() const
{
- QString retval( "enum " + mName + " {" );
+ TQString retval( "enum " + mName + " {" );
uint value = 0;
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it = mEnums.begin(); it != mEnums.end(); ++it, ++value ) {
if ( mCombinable ) {
if ( it == mEnums.begin() )
- retval += QString( " %1 = %2" ).arg( *it ).arg( 1 << value );
+ retval += TQString( " %1 = %2" ).arg( *it ).arg( 1 << value );
else
- retval += QString( ", %1 = %2" ).arg( *it ).arg( 1 << value );
+ retval += TQString( ", %1 = %2" ).arg( *it ).arg( 1 << value );
} else {
if ( it == mEnums.begin() )
retval += " " + *it;