summaryrefslogtreecommitdiffstats
path: root/libkcal/person.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/person.cpp')
-rw-r--r--libkcal/person.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/libkcal/person.cpp b/libkcal/person.cpp
index 687ec6db..aad80f68 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);