summaryrefslogtreecommitdiffstats
path: root/libkcal/incidencebase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/incidencebase.cpp')
-rw-r--r--libkcal/incidencebase.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp
index 4777e5c4f..2aeba830f 100644
--- a/libkcal/incidencebase.cpp
+++ b/libkcal/incidencebase.cpp
@@ -127,32 +127,32 @@ bool IncidenceBase::operator==( const IncidenceBase& i2 ) const
-void IncidenceBase::setUid(const QString &uid)
+void IncidenceBase::setUid(const TQString &uid)
{
mUid = uid;
updated();
}
-QString IncidenceBase::uid() const
+TQString IncidenceBase::uid() const
{
return mUid;
}
-void IncidenceBase::setLastModified(const QDateTime &lm)
+void IncidenceBase::setLastModified(const TQDateTime &lm)
{
// DON'T! updated() because we call this from
// Calendar::updateEvent().
// Remove milliseconds part.
- QDateTime current = lm;
- QTime t = current.time();
+ TQDateTime current = lm;
+ TQTime t = current.time();
t.setHMS( t.hour(), t.minute(), t.second(), 0 );
current.setTime( t );
mLastModified = current;
}
-QDateTime IncidenceBase::lastModified() const
+TQDateTime IncidenceBase::lastModified() const
{
return mLastModified;
}
@@ -167,9 +167,9 @@ void IncidenceBase::setOrganizer( const Person &o )
updated();
}
-void IncidenceBase::setOrganizer(const QString &o)
+void IncidenceBase::setOrganizer(const TQString &o)
{
- QString mail( o );
+ TQString mail( o );
if ( mail.startsWith("MAILTO:", false) )
mail = mail.remove( 0, 7 );
// split the string into full name plus email.
@@ -187,29 +187,29 @@ void IncidenceBase::setReadOnly( bool readOnly )
mReadOnly = readOnly;
}
-void IncidenceBase::setDtStart(const QDateTime &dtStart)
+void IncidenceBase::setDtStart(const TQDateTime &dtStart)
{
// if (mReadOnly) return;
mDtStart = dtStart;
updated();
}
-QDateTime IncidenceBase::dtStart() const
+TQDateTime IncidenceBase::dtStart() const
{
return mDtStart;
}
-QString IncidenceBase::dtStartTimeStr() const
+TQString IncidenceBase::dtStartTimeStr() const
{
return KGlobal::locale()->formatTime(dtStart().time());
}
-QString IncidenceBase::dtStartDateStr(bool shortfmt) const
+TQString IncidenceBase::dtStartDateStr(bool shortfmt) const
{
return KGlobal::locale()->formatDate(dtStart().date(),shortfmt);
}
-QString IncidenceBase::dtStartStr() const
+TQString IncidenceBase::dtStartStr() const
{
return KGlobal::locale()->formatDateTime(dtStart());
}
@@ -228,15 +228,15 @@ void IncidenceBase::setFloats(bool f)
}
-void IncidenceBase::addComment(const QString& comment)
+void IncidenceBase::addComment(const TQString& comment)
{
mComments += comment;
}
-bool IncidenceBase::removeComment( const QString& comment)
+bool IncidenceBase::removeComment( const TQString& comment)
{
bool found = false;
- QStringList::Iterator i;
+ TQStringList::Iterator i;
for ( i = mComments.begin(); !found && i != mComments.end(); ++i ) {
if ( (*i) == comment ) {
@@ -253,7 +253,7 @@ void IncidenceBase::clearComments()
mComments.clear();
}
-QStringList IncidenceBase::comments() const
+TQStringList IncidenceBase::comments() const
{
return mComments;
}
@@ -298,7 +298,7 @@ void IncidenceBase::clearAttendees()
mAttendees.clear();
}
-Attendee *IncidenceBase::attendeeByMail( const QString &email ) const
+Attendee *IncidenceBase::attendeeByMail( const TQString &email ) const
{
Attendee::List::ConstIterator it;
for( it = mAttendees.begin(); it != mAttendees.end(); ++it ) {
@@ -308,15 +308,15 @@ Attendee *IncidenceBase::attendeeByMail( const QString &email ) const
return 0;
}
-Attendee *IncidenceBase::attendeeByMails( const QStringList &emails,
- const QString &email) const
+Attendee *IncidenceBase::attendeeByMails( const TQStringList &emails,
+ const TQString &email) const
{
- QStringList mails = emails;
+ TQStringList mails = emails;
if ( !email.isEmpty() ) mails.append( email );
Attendee::List::ConstIterator itA;
for( itA = mAttendees.begin(); itA != mAttendees.end(); ++itA ) {
- for ( QStringList::Iterator it = mails.begin(); it != mails.end(); ++it ) {
+ for ( TQStringList::Iterator it = mails.begin(); it != mails.end(); ++it ) {
if ( (*itA)->email() == (*it) ) return *itA;
}
}
@@ -324,7 +324,7 @@ Attendee *IncidenceBase::attendeeByMails( const QStringList &emails,
return 0;
}
-Attendee *IncidenceBase::attendeeByUid( const QString &uid ) const
+Attendee *IncidenceBase::attendeeByUid( const TQString &uid ) const
{
Attendee::List::ConstIterator it;
for( it = mAttendees.begin(); it != mAttendees.end(); ++it ) {
@@ -400,7 +400,7 @@ void IncidenceBase::unRegisterObserver( IncidenceBase::Observer *observer )
void IncidenceBase::updated()
{
- QPtrListIterator<Observer> it(mObservers);
+ TQPtrListIterator<Observer> it(mObservers);
while( it.current() ) {
Observer *o = it.current();
++it;
@@ -415,7 +415,7 @@ void IncidenceBase::customPropertyUpdated()
void IncidenceBase::updatedSilent()
{
- QPtrListIterator<Observer> it(mObservers);
+ TQPtrListIterator<Observer> it(mObservers);
while( it.current() ) {
Observer *o = it.current();
++it;