From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/person.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libkcal/person.cpp') diff --git a/libkcal/person.cpp b/libkcal/person.cpp index 687ec6dbf..aad80f68f 100644 --- a/libkcal/person.cpp +++ b/libkcal/person.cpp @@ -27,19 +27,19 @@ #include -#include +#include using namespace KCal; -Person::Person( const QString &fullName ) +Person::Person( const TQString &fullName ) { - QString name, email; + TQString name, email; KPIM::getNameAndMail( fullName, name, email ); setName( name ); setEmail( email ); } -Person::Person( const QString &name, const QString &email ) +Person::Person( const TQString &name, const TQString &email ) { setName( name ); setEmail( email ); @@ -53,7 +53,7 @@ bool KCal::operator==( const Person& p1, const Person& p2 ) } -QString Person::fullName() const +TQString Person::fullName() const { if( mName.isEmpty() ) { return mEmail; @@ -62,8 +62,8 @@ QString Person::fullName() const return mName; else { // Taken from KABC::Addressee::fullEmail - QString name = mName; - QRegExp needQuotes( "[^ 0-9A-Za-z\\x0080-\\xFFFF]" ); + TQString name = mName; + TQRegExp needQuotes( "[^ 0-9A-Za-z\\x0080-\\xFFFF]" ); bool weNeedToQuote = name.find( needQuotes ) != -1; if ( weNeedToQuote ) { if ( name[0] != '"' ) @@ -81,12 +81,12 @@ bool Person::isEmpty() const return mEmail.isEmpty() && mName.isEmpty(); } -void Person::setName(const QString &name) +void Person::setName(const TQString &name) { mName = name; } -void Person::setEmail(const QString &email) +void Person::setEmail(const TQString &email) { if ( email.startsWith( "mailto:", false ) ) { mEmail = email.mid(7); -- cgit v1.2.1