summaryrefslogtreecommitdiffstats
path: root/kplato/kptcalendarpanel.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:23:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:23:24 -0600
commit5b8ab149469c8e186ee8b05d90c0103ae722dd85 (patch)
treefb31321c80b12ee8e2237bdcf8c228fe44e67772 /kplato/kptcalendarpanel.cc
parentfe33d391dd7c9da0f83e779344a17e2e445b70a8 (diff)
downloadkoffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.tar.gz
koffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kplato/kptcalendarpanel.cc')
-rw-r--r--kplato/kptcalendarpanel.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/kplato/kptcalendarpanel.cc b/kplato/kptcalendarpanel.cc
index 4010afa3..fec4088b 100644
--- a/kplato/kptcalendarpanel.cc
+++ b/kplato/kptcalendarpanel.cc
@@ -208,9 +208,9 @@ void
CalendarPanel::dateChangedSlot(TQDate date)
{
//kdDebug() << "CalendarPanel::dateChangedSlot: date changed (" << date.year() << "/" << date.month() << "/" << date.day() << ")." << endl;
- line->setText(KGlobal::locale()->formatDate(date, true));
+ line->setText(TDEGlobal::locale()->formatDate(date, true));
d->selectWeek->setText(i18n("Week %1").arg(weekOfYear(date)));
- selectMonth->setText(KGlobal::locale()->calendar()->monthName(date.month(), false));
+ selectMonth->setText(TDEGlobal::locale()->calendar()->monthName(date.month(), false));
selectYear->setText(date.toString("yyyy"));
emit(dateChanged(date));
}
@@ -243,10 +243,10 @@ CalendarPanel::setDate(const TQDate& date)
// -----
table->setDate(date);
d->selectWeek->setText(i18n("Week %1").arg(weekOfYear(date)));
- selectMonth->setText(KGlobal::locale()->calendar()->monthName(date.month(), false));
+ selectMonth->setText(TDEGlobal::locale()->calendar()->monthName(date.month(), false));
temp.setNum(date.year());
selectYear->setText(temp);
- line->setText(KGlobal::locale()->formatDate(date, true));
+ line->setText(TDEGlobal::locale()->formatDate(date, true));
return true;
} else {
kdDebug() << "CalendarPanel::setDate: refusing to set invalid date." << endl;
@@ -472,7 +472,7 @@ CalendarPanel::setFontSize(int s)
TQFontMetrics metrics(selectMonth->fontMetrics());
for(int i=1; i <= 12; ++i)
{ // maxMonthRect is used by sizeHint()
- r=metrics.boundingRect(KGlobal::locale()->calendar()->monthName(i, false));
+ r=metrics.boundingRect(TDEGlobal::locale()->calendar()->monthName(i, false));
maxMonthRect.setWidth(TQMAX(r.width(), maxMonthRect.width()));
maxMonthRect.setHeight(TQMAX(r.height(), maxMonthRect.height()));
}