summaryrefslogtreecommitdiffstats
path: root/src/calendarhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/calendarhandler.cpp')
-rw-r--r--src/calendarhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/calendarhandler.cpp b/src/calendarhandler.cpp
index 303bad1..63a80e2 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 {
@@ -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];