summaryrefslogtreecommitdiffstats
path: root/kmymoney2/reports/pivottable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/reports/pivottable.cpp')
-rw-r--r--kmymoney2/reports/pivottable.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/reports/pivottable.cpp b/kmymoney2/reports/pivottable.cpp
index 7846d93..e41215b 100644
--- a/kmymoney2/reports/pivottable.cpp
+++ b/kmymoney2/reports/pivottable.cpp
@@ -436,7 +436,7 @@ void PivotTable::collapseColumns(void)
{
unsigned sourcemonth = (m_config_f.isColumnsAreDays())
// use the user's locale to determine the week's start
- ? (m_beginDate.dayOfWeek() + 8 - KGlobal::locale()->weekStartDay()) % 7
+ ? (m_beginDate.dayOfWeek() + 8 - TDEGlobal::locale()->weekStartDay()) % 7
: m_beginDate.month();
unsigned sourcecolumn = 1;
unsigned destcolumn = 1;
@@ -544,7 +544,7 @@ void PivotTable::calculateColumnHeadings(void)
unsigned column = 1;
while ( column++ < m_numColumns )
{
- TQString heading = KGlobal::locale()->calendar()->monthName(columnDate.month(), columnDate.year(), true) + " " + TQString::number(columnDate.day());
+ TQString heading = TDEGlobal::locale()->calendar()->monthName(columnDate.month(), columnDate.year(), true) + " " + TQString::number(columnDate.day());
columnDate = columnDate.addDays(1);
m_columnHeadings.append( heading);
}
@@ -555,16 +555,16 @@ void PivotTable::calculateColumnHeadings(void)
TQDate prv = m_beginDate;
// use the user's locale to determine the week's start
- unsigned dow = (day.dayOfWeek() +8 -KGlobal::locale()->weekStartDay())%7;
+ unsigned dow = (day.dayOfWeek() +8 -TDEGlobal::locale()->weekStartDay())%7;
while (day <= m_endDate)
{
if (((dow % columnpitch) == 0) || (day == m_endDate))
{
m_columnHeadings.append(TQString("%1&nbsp;%2 - %3&nbsp;%4")
- .arg(KGlobal::locale()->calendar()->monthName(prv.month(), prv.year(), true))
+ .arg(TDEGlobal::locale()->calendar()->monthName(prv.month(), prv.year(), true))
.arg(prv.day())
- .arg(KGlobal::locale()->calendar()->monthName(day.month(), day.year(), true))
+ .arg(TDEGlobal::locale()->calendar()->monthName(day.month(), day.year(), true))
.arg(day.day()));
prv = day.addDays(1);
}
@@ -592,9 +592,9 @@ void PivotTable::calculateColumnHeadings(void)
unsigned column = 1;
while ( column++ < m_numColumns )
{
- TQString heading = KGlobal::locale()->calendar()->monthName(1+segment*columnpitch, 2000, true);
+ TQString heading = TDEGlobal::locale()->calendar()->monthName(1+segment*columnpitch, 2000, true);
if ( columnpitch != 1 )
- heading += "-" + KGlobal::locale()->calendar()->monthName((1+segment)*columnpitch, 2000, true);
+ heading += "-" + TDEGlobal::locale()->calendar()->monthName((1+segment)*columnpitch, 2000, true);
if ( includeyear )
heading += " " + TQString::number(year);
m_columnHeadings.append( heading);
@@ -1578,7 +1578,7 @@ TQString PivotTable::renderHTML( void ) const
//actual dates of the report
result += TQString("<div class=\"subtitle\">");
- result += i18n("Report date range", "%1 through %2").arg(KGlobal::locale()->formatDate(m_config_f.fromDate(), true)).arg(KGlobal::locale()->formatDate(m_config_f.toDate(), true));
+ result += i18n("Report date range", "%1 through %2").arg(TDEGlobal::locale()->formatDate(m_config_f.fromDate(), true)).arg(TDEGlobal::locale()->formatDate(m_config_f.toDate(), true));
result += TQString("</div>\n");
result += TQString("<div class=\"gap\">&nbsp;</div>\n");