diff options
Diffstat (limited to 'libkcal/calfilter.cpp')
-rw-r--r-- | libkcal/calfilter.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libkcal/calfilter.cpp b/libkcal/calfilter.cpp index c1b66f094..898ec79cf 100644 --- a/libkcal/calfilter.cpp +++ b/libkcal/calfilter.cpp @@ -34,7 +34,7 @@ CalFilter::CalFilter() mCompletedTimeSpan = 0; } -CalFilter::CalFilter(const QString &name) +CalFilter::CalFilter(const TQString &name) { mName = name; mEnabled = true; @@ -108,14 +108,14 @@ bool CalFilter::filterIncidence(Incidence *incidence) const if ( (mCriteria & HideCompleted) && todo->isCompleted() ) { // Check if completion date is suffently long ago: if ( todo->completed().addDays( mCompletedTimeSpan ) < - QDateTime::currentDateTime() ) { + TQDateTime::currentDateTime() ) { return false; } } if( ( mCriteria & HideInactiveTodos ) && ( todo->hasStartDate() && - QDateTime::currentDateTime() < todo->dtStart() || + TQDateTime::currentDateTime() < todo->dtStart() || todo->isCompleted() ) ) return false; @@ -145,10 +145,10 @@ bool CalFilter::filterIncidence(Incidence *incidence) const } if (mCriteria & ShowCategories) { - for (QStringList::ConstIterator it = mCategoryList.constBegin(); + for (TQStringList::ConstIterator it = mCategoryList.constBegin(); it != mCategoryList.constEnd(); ++it ) { - QStringList incidenceCategories = incidence->categories(); - for (QStringList::ConstIterator it2 = incidenceCategories.constBegin(); + TQStringList incidenceCategories = incidence->categories(); + for (TQStringList::ConstIterator it2 = incidenceCategories.constBegin(); it2 != incidenceCategories.constEnd(); ++it2 ) { if ((*it) == (*it2)) { return true; @@ -157,10 +157,10 @@ bool CalFilter::filterIncidence(Incidence *incidence) const } return false; } else { - for (QStringList::ConstIterator it = mCategoryList.constBegin(); + for (TQStringList::ConstIterator it = mCategoryList.constBegin(); it != mCategoryList.constEnd(); ++it ) { - QStringList incidenceCategories = incidence->categories(); - for (QStringList::ConstIterator it2 = incidenceCategories.constBegin(); + TQStringList incidenceCategories = incidence->categories(); + for (TQStringList::ConstIterator it2 = incidenceCategories.constBegin(); it2 != incidenceCategories.constEnd(); ++it2 ) { if ((*it) == (*it2)) { return false; @@ -195,22 +195,22 @@ int CalFilter::criteria() const return mCriteria; } -void CalFilter::setCategoryList(const QStringList &categoryList) +void CalFilter::setCategoryList(const TQStringList &categoryList) { mCategoryList = categoryList; } -QStringList CalFilter::categoryList() const +TQStringList CalFilter::categoryList() const { return mCategoryList; } -void CalFilter::setEmailList(const QStringList &emailList) +void CalFilter::setEmailList(const TQStringList &emailList) { mEmailList = emailList; } -QStringList CalFilter::emailList() const +TQStringList CalFilter::emailList() const { return mEmailList; } |