summaryrefslogtreecommitdiffstats
path: root/kexi/main/printing/kexisimpleprintingengine.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:32:11 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /kexi/main/printing/kexisimpleprintingengine.cpp
parent2a811c38c74c03648ecf857e566c44483cbad706 (diff)
downloadkoffice-94844816550ad672ccfcdc25659c625546239998.tar.gz
koffice-94844816550ad672ccfcdc25659c625546239998.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kexi/main/printing/kexisimpleprintingengine.cpp')
-rw-r--r--kexi/main/printing/kexisimpleprintingengine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kexi/main/printing/kexisimpleprintingengine.cpp b/kexi/main/printing/kexisimpleprintingengine.cpp
index 45ab5892..8591167f 100644
--- a/kexi/main/printing/kexisimpleprintingengine.cpp
+++ b/kexi/main/printing/kexisimpleprintingengine.cpp
@@ -30,7 +30,7 @@
#include <kdebug.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpainter.h>
#include <tqcheckbox.h>
#include <tqwhatsthis.h>
@@ -278,7 +278,7 @@ void KexiSimplePrintingEngine::paintPage(int pageNumber, TQPainter& painter, boo
}
painter.setFont(m_mainFont);
- m_dateTimeText = KGlobal::locale()->formatDateTime(TQDateTime::tqcurrentDateTime(),
+ m_dateTimeText = KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime(),
true, false);
m_dateTimeWidth = painter.fontMetrics().width(m_dateTimeText+" ");
m_mainLineSpacing = painter.fontMetrics().lineSpacing();
@@ -326,9 +326,9 @@ void KexiSimplePrintingEngine::paintPage(int pageNumber, TQPainter& painter, boo
TQString pageNumString;
if (m_pagesCount>0)
pageNumString = i18n("Page (number) of (total)", "Page %1 of %2")
- .tqarg(pageNumber+1).tqarg(m_pagesCount);
+ .arg(pageNumber+1).arg(m_pagesCount);
else
- pageNumString = i18n("Page %1").tqarg(pageNumber+1);
+ pageNumString = i18n("Page %1").arg(pageNumber+1);
painter.drawText((int)m_leftMargin,
(int)m_topMargin + m_pageHeight - m_mainLineSpacing,
m_pageWidth, m_mainLineSpacing,