summaryrefslogtreecommitdiffstats
path: root/src/calendarhandler.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
commit031454e56009d576589c28757f6c6fcf4884095e (patch)
treead4c9959d05a814c9090e8fe63ba27057903271b /src/calendarhandler.cpp
parent54011e0e1af8cd96162160ecf5d361a59a2c733e (diff)
downloadtellico-031454e56009d576589c28757f6c6fcf4884095e.tar.gz
tellico-031454e56009d576589c28757f6c6fcf4884095e.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/calendarhandler.cpp')
-rw-r--r--src/calendarhandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/calendarhandler.cpp b/src/calendarhandler.cpp
index 303bad1..dedcd73 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(TQString::tqfromLatin1("korganizerrc"));
+ KConfig config(TQString::fromLatin1("korganizerrc"));
config.setGroup("General");
TQString fileName = config.readPathEntry("Active Calendar");
TQString resourceName;
KCal::ResourceCalendar* defaultResource = 0;
if(fileName.isEmpty()) {
- fileName = locateLocal("appdata", TQString::tqfromLatin1("std.ics"));
+ fileName = locateLocal("appdata", TQString::fromLatin1("std.ics"));
resourceName = i18n("Default Calendar");
defaultResource = new KCal::ResourceLocal(fileName);
} else {
@@ -200,7 +200,7 @@ void CalendarHandler::populateTodo(KCal::Todo* todo_, Data::LoanPtr loan_) {
todo_->setDtDue(loan_->dueDate());
todo_->setHasDueDate(true);
TQString person = loan_->borrower()->name();
- TQString summary = i18n("Tellico: %1 is due to return \"%2\"").tqarg(person).tqarg(loan_->entry()->title());
+ TQString summary = i18n("Tellico: %1 is due to return \"%2\"").arg(person).arg(loan_->entry()->title());
todo_->setSummary(summary);
TQString note = loan_->note();
if(note.isEmpty()) {
@@ -228,7 +228,7 @@ void CalendarHandler::populateTodo(KCal::Todo* todo_, Data::LoanPtr loan_) {
TQString CalendarHandler::timezone() {
TQString zone;
- KConfig korgcfg(locate(TQString::tqfromLatin1("config"), TQString::tqfromLatin1("korganizerrc")));
+ KConfig korgcfg(locate(TQString::fromLatin1("config"), TQString::fromLatin1("korganizerrc")));
korgcfg.setGroup("Time & Date");
TQString tz(korgcfg.readEntry("TimeZoneId"));
if(!tz.isEmpty()) {
@@ -239,7 +239,7 @@ TQString CalendarHandler::timezone() {
int len = ::readlink("/etc/localtime", zonefilebuf, PATH_MAX);
if(len > 0 && len < PATH_MAX) {
zone = TQString::fromLocal8Bit(zonefilebuf, len);
- zone = zone.mid(zone.find(TQString::tqfromLatin1("zoneinfo/")) + 9);
+ zone = zone.mid(zone.find(TQString::fromLatin1("zoneinfo/")) + 9);
} else {
tzset();
zone = tzname[0];