diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/person.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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 'libkcal/person.cpp')
-rw-r--r-- | libkcal/person.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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 <libemailfunctions/email.h> -#include <qregexp.h> +#include <tqregexp.h> 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); |