summaryrefslogtreecommitdiffstats
path: root/kplato/kptreportview.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kplato/kptreportview.cc')
-rw-r--r--kplato/kptreportview.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/kplato/kptreportview.cc b/kplato/kptreportview.cc
index 655d1907..a79f34e9 100644
--- a/kplato/kptreportview.cc
+++ b/kplato/kptreportview.cc
@@ -45,7 +45,7 @@
#include <tqfileinfo.h>
#include <tqheader.h>
#include <tqpopupmenu.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqdom.h>
#include <tqstringlist.h>
@@ -83,7 +83,7 @@ public:
if (!tag.contains('.')) {
// global tags
if (tag == "currentdate") {
- return l->formatDate(TQDate::tqcurrentDate(), true);
+ return l->formatDate(TQDate::currentDate(), true);
}
return TQString();
}
@@ -127,7 +127,7 @@ public:
if (tag.section(".", 1, 1) == "availableuntil")
return (m_resource ? l->formatDate(m_resource->availableUntil().date(), true) : TQString());
if (tag.section(".", 1, 1) == "units")
- return (m_resource ? TQString("%1%").tqarg(m_resource->units()) : TQString());
+ return (m_resource ? TQString("%1%").arg(m_resource->units()) : TQString());
if (tag.section(".", 1, 1) == "normalrate")
return (m_resource ? l->formatMoney(m_resource->normalRate()) : TQString());
if (tag.section(".", 1, 1) == "overtimerate")
@@ -494,11 +494,11 @@ void ReportView::loadTemplate(TQDomDocument &doc) {
m_reportTags->m_project = &(mainView()->getPart()->getProject());
// Get all the child report elements
- TQDomNodeList tqchildren = tpl.childNodes();
- int childCount = tqchildren.length();
+ TQDomNodeList children = tpl.childNodes();
+ int childCount = children.length();
for(int j = 0; j < childCount; j++){
- child = tqchildren.item(j);
+ child = children.item(j);
if(child.nodeType() == TQDomNode::ElementNode) {
TQDomElement e = child.toElement();
//kdDebug()<<child.nodeName()<<endl;
@@ -526,10 +526,10 @@ void ReportView::loadTemplate(TQDomDocument &doc) {
void ReportView::handleHeader(TQDomNode &node) {
TQDomNode child;
- TQDomNodeList tqchildren = node.childNodes();
- int childCount = tqchildren.length();
+ TQDomNodeList children = node.childNodes();
+ int childCount = children.length();
for (int j = 0; j < childCount; j++) {
- child = tqchildren.item(j);
+ child = children.item(j);
if (child.nodeName() == "Label") {
TQDomNode n = child.attributes().namedItem("Text");
TQString s = n.nodeValue();
@@ -658,14 +658,14 @@ void ReportView::getTemplateFile(const TQString &tpl) {
if (!url.isValid())
{
- KMessageBox::sorry(this,i18n("Malformed template filename: %1").tqarg(url.prettyURL()));
+ KMessageBox::sorry(this,i18n("Malformed template filename: %1").arg(url.prettyURL()));
}
else
{
if (KIO::NetAccess::download(url,localtpl,this))
isTemp = true;
else
- KMessageBox::sorry(this,i18n("Unable to download template file: %1").tqarg(url.prettyURL()));
+ KMessageBox::sorry(this,i18n("Unable to download template file: %1").arg(url.prettyURL()));
}
if (!localtpl.isNull())