summaryrefslogtreecommitdiffstats
path: root/kexi/main/printing/kexisimpleprintingengine.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-24 13:23:24 -0600
committerTimothy Pearson <[email protected]>2013-01-24 13:23:24 -0600
commit5b8ab149469c8e186ee8b05d90c0103ae722dd85 (patch)
treefb31321c80b12ee8e2237bdcf8c228fe44e67772 /kexi/main/printing/kexisimpleprintingengine.cpp
parentfe33d391dd7c9da0f83e779344a17e2e445b70a8 (diff)
downloadkoffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.tar.gz
koffice-5b8ab149469c8e186ee8b05d90c0103ae722dd85.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
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");