summaryrefslogtreecommitdiffstats
path: root/kexi/main/printing/kexisimpleprintingengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/main/printing/kexisimpleprintingengine.cpp')
-rw-r--r--kexi/main/printing/kexisimpleprintingengine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kexi/main/printing/kexisimpleprintingengine.cpp b/kexi/main/printing/kexisimpleprintingengine.cpp
index 3e6f8a97..b8ad5ebd 100644
--- a/kexi/main/printing/kexisimpleprintingengine.cpp
+++ b/kexi/main/printing/kexisimpleprintingengine.cpp
@@ -278,7 +278,7 @@ void KexiSimplePrintingEngine::paintPage(int pageNumber, TQPainter& painter, boo
}
painter.setFont(m_mainFont);
- m_dateTimeText = KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime(),
+ m_dateTimeText = TDEGlobal::locale()->formatDateTime(TQDateTime::currentDateTime(),
true, false);
m_dateTimeWidth = painter.fontMetrics().width(m_dateTimeText+" ");
m_mainLineSpacing = painter.fontMetrics().lineSpacing();
@@ -432,23 +432,23 @@ void KexiSimplePrintingEngine::paintRecord(TQPainter& painter, KexiTableItem *it
else if (ftype==KexiDB::Field::DateTime) {
TQDateTime dt(v.toDateTime());
if (dt.isValid())
- text = KGlobal::locale()->formatDateTime(dt);
+ text = TDEGlobal::locale()->formatDateTime(dt);
}
//! todo inherit format
else if (ftype==KexiDB::Field::Date) {
TQDate date(v.toDate());
if (date.isValid())
- text = KGlobal::locale()->formatDate(date, true/*short*/);
+ text = TDEGlobal::locale()->formatDate(date, true/*short*/);
}
//! todo inherit format
else if (ftype==KexiDB::Field::Time) {
TQTime time(v.toTime());
if (time.isValid())
- text = KGlobal::locale()->formatTime(time);
+ text = TDEGlobal::locale()->formatTime(time);
}
//! todo currency, decimal...
else if (ci->field->isFPNumericType())
- text = KGlobal::locale()->formatNumber(v.toDouble());
+ text = TDEGlobal::locale()->formatNumber(v.toDouble());
else if (ftype==KexiDB::Field::Boolean)
text = v.toBool()
? i18n("Boolean Yes (true)","Yes") : i18n("Boolean No (false)", "No");