summaryrefslogtreecommitdiffstats
path: root/kabc/phonenumber.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kabc/phonenumber.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/phonenumber.cpp')
-rw-r--r--kabc/phonenumber.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp
index 31fba4a9e..31a99f9ea 100644
--- a/kabc/phonenumber.cpp
+++ b/kabc/phonenumber.cpp
@@ -31,7 +31,7 @@ PhoneNumber::PhoneNumber() :
init();
}
-PhoneNumber::PhoneNumber( const QString &number, int type ) :
+PhoneNumber::PhoneNumber( const TQString &number, int type ) :
mType( type )
{
init();
@@ -48,7 +48,7 @@ void PhoneNumber::init()
mId = KApplication::randomString( 8 );
}
-void PhoneNumber::validateNumber( const QString &number )
+void PhoneNumber::validateNumber( const TQString &number )
{
mNumber = number;
@@ -70,22 +70,22 @@ bool PhoneNumber::operator!=( const PhoneNumber &p ) const
return !( p == *this );
}
-void PhoneNumber::setId( const QString &id )
+void PhoneNumber::setId( const TQString &id )
{
mId = id;
}
-QString PhoneNumber::id() const
+TQString PhoneNumber::id() const
{
return mId;
}
-void PhoneNumber::setNumber( const QString &number )
+void PhoneNumber::setNumber( const TQString &number )
{
validateNumber( number );
}
-QString PhoneNumber::number() const
+TQString PhoneNumber::number() const
{
return mNumber;
}
@@ -100,9 +100,9 @@ int PhoneNumber::type() const
return mType;
}
-QString PhoneNumber::typeLabel() const
+TQString PhoneNumber::typeLabel() const
{
- QString label;
+ TQString label;
bool first = true;
const TypeList list = typeList();
@@ -119,7 +119,7 @@ QString PhoneNumber::typeLabel() const
return label;
}
-QString PhoneNumber::label() const
+TQString PhoneNumber::label() const
{
return typeLabel( type() );
}
@@ -136,12 +136,12 @@ PhoneNumber::TypeList PhoneNumber::typeList()
return list;
}
-QString PhoneNumber::label( int type )
+TQString PhoneNumber::label( int type )
{
return typeLabel( type );
}
-QString PhoneNumber::typeLabel( int type )
+TQString PhoneNumber::typeLabel( int type )
{
if ( type & Pref )
return i18n( "Preferred phone", "Preferred" );
@@ -200,12 +200,12 @@ QString PhoneNumber::typeLabel( int type )
}
}
-QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone )
+TQDataStream &KABC::operator<<( TQDataStream &s, const PhoneNumber &phone )
{
return s << phone.mId << phone.mType << phone.mNumber;
}
-QDataStream &KABC::operator>>( QDataStream &s, PhoneNumber &phone )
+TQDataStream &KABC::operator>>( TQDataStream &s, PhoneNumber &phone )
{
s >> phone.mId >> phone.mType >> phone.mNumber;