diff options
Diffstat (limited to 'src/calendarhandler.cpp')
-rw-r--r-- | src/calendarhandler.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/calendarhandler.cpp b/src/calendarhandler.cpp index c8953fd..b377485 100644 --- a/src/calendarhandler.cpp +++ b/src/calendarhandler.cpp @@ -156,14 +156,14 @@ bool CalendarHandler::checkCalendar(KCal::CalendarResources* resources) { KCal::CalendarResourceManager* manager = resources->resourceManager(); if(manager->isEmpty()) { kdWarning() << "Tellico::CalendarHandler::checkCalendar() - adding default calendar" << endl; - KConfig config(QString::fromLatin1("korganizerrc")); + KConfig config(TQString::tqfromLatin1("korganizerrc")); config.setGroup("General"); - QString fileName = config.readPathEntry("Active Calendar"); + TQString fileName = config.readPathEntry("Active Calendar"); - QString resourceName; + TQString resourceName; KCal::ResourceCalendar* defaultResource = 0; if(fileName.isEmpty()) { - fileName = locateLocal("appdata", QString::fromLatin1("std.ics")); + fileName = locateLocal("appdata", TQString::tqfromLatin1("std.ics")); resourceName = i18n("Default Calendar"); defaultResource = new KCal::ResourceLocal(fileName); } else { @@ -199,10 +199,10 @@ void CalendarHandler::populateTodo(KCal::Todo* todo_, Data::LoanPtr loan_) { todo_->setHasStartDate(true); todo_->setDtDue(loan_->dueDate()); todo_->setHasDueDate(true); - QString person = loan_->borrower()->name(); - QString summary = i18n("Tellico: %1 is due to return \"%2\"").arg(person).arg(loan_->entry()->title()); + TQString person = loan_->borrower()->name(); + TQString summary = i18n("Tellico: %1 is due to return \"%2\"").tqarg(person).tqarg(loan_->entry()->title()); todo_->setSummary(summary); - QString note = loan_->note(); + TQString note = loan_->note(); if(note.isEmpty()) { note = summary; } @@ -212,7 +212,7 @@ void CalendarHandler::populateTodo(KCal::Todo* todo_, Data::LoanPtr loan_) { todo_->clearAttendees(); // not adding email of borrower for now, but request RSVP? KCal::Attendee* attendee = new KCal::Attendee(loan_->borrower()->name(), - QString::null, false /*rsvp*/, + TQString(), false /*rsvp*/, KCal::Attendee::NeedsAction, KCal::Attendee::ReqParticipant, loan_->borrower()->uid()); @@ -225,12 +225,12 @@ void CalendarHandler::populateTodo(KCal::Todo* todo_, Data::LoanPtr loan_) { } // taken from kpimprefs.cpp -QString CalendarHandler::timezone() { - QString zone; +TQString CalendarHandler::timezone() { + TQString zone; - KConfig korgcfg(locate(QString::fromLatin1("config"), QString::fromLatin1("korganizerrc"))); + KConfig korgcfg(locate(TQString::tqfromLatin1("config"), TQString::tqfromLatin1("korganizerrc"))); korgcfg.setGroup("Time & Date"); - QString tz(korgcfg.readEntry("TimeZoneId")); + TQString tz(korgcfg.readEntry("TimeZoneId")); if(!tz.isEmpty()) { zone = tz; } else { @@ -238,8 +238,8 @@ QString CalendarHandler::timezone() { int len = ::readlink("/etc/localtime", zonefilebuf, PATH_MAX); if(len > 0 && len < PATH_MAX) { - zone = QString::fromLocal8Bit(zonefilebuf, len); - zone = zone.mid(zone.find(QString::fromLatin1("zoneinfo/")) + 9); + zone = TQString::fromLocal8Bit(zonefilebuf, len); + zone = zone.mid(zone.tqfind(TQString::tqfromLatin1("zoneinfo/")) + 9); } else { tzset(); zone = tzname[0]; |