summaryrefslogtreecommitdiffstats
path: root/kplato/kptganttview.cc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:32:11 -0600
commit94844816550ad672ccfcdc25659c625546239998 (patch)
treee35fc60fd736c645d59f6408af032774ad8023d3 /kplato/kptganttview.cc
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 'kplato/kptganttview.cc')
-rw-r--r--kplato/kptganttview.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/kplato/kptganttview.cc b/kplato/kptganttview.cc
index 925598f9..fa5bca1e 100644
--- a/kplato/kptganttview.cc
+++ b/kplato/kptganttview.cc
@@ -45,7 +45,7 @@
#include <tqsplitter.h>
#include <tqvbox.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlistview.h>
#include <tqheader.h>
#include <tqpopupmenu.h>
@@ -73,8 +73,8 @@ public:
MyKDGanttView(TQWidget *parent, const char *name)
: KDGanttView(parent, name) {
}
- virtual TQSize tqsizeHint() const {
- return tqminimumSizeHint(); //HACK: koshell splitter tqminimumSize problem
+ virtual TQSize sizeHint() const {
+ return minimumSizeHint(); //HACK: koshell splitter minimumSize problem
}
};
@@ -322,7 +322,7 @@ void GanttView::resetDrawn(KDGanttViewItem *_item)
for (; item; item = nextItem) {
nextItem = item->nextSibling();
setDrawn(item, false);
- resetDrawn(item->firstChild()); // then my tqchildren
+ resetDrawn(item->firstChild()); // then my children
}
}
@@ -336,7 +336,7 @@ void GanttView::removeNotDrawn(KDGanttViewItem *_item)
m_currentItem = 0;
deleteItem(item);
} else {
- removeNotDrawn(item->firstChild()); // then my tqchildren
+ removeNotDrawn(item->firstChild()); // then my children
}
}
}
@@ -502,10 +502,10 @@ void GanttView::modifySummaryTask(KDGanttViewItem *item, Task *task)
} else {
item->setText(TQString());
}
- TQString w = i18n("Name: %1").tqarg(task->name());
+ TQString w = i18n("Name: %1").arg(task->name());
if (!task->notScheduled()) {
- w += "\n" + i18n("Start: %1").tqarg(locale->formatDateTime(task->startTime()));
- w += "\n" + i18n("End: %1").tqarg(locale->formatDateTime(task->endTime()));
+ w += "\n" + i18n("Start: %1").arg(locale->formatDateTime(task->startTime()));
+ w += "\n" + i18n("End: %1").arg(locale->formatDateTime(task->endTime()));
}
bool ok = true;
if (task->notScheduled()) {
@@ -582,15 +582,15 @@ void GanttView::modifyTask(KDGanttViewItem *item, Task *task)
item->setFloatStartTime(TQDateTime());
item->setFloatEndTime(TQDateTime());
}
- TQString w = i18n("Name: %1").tqarg(task->name());
+ TQString w = i18n("Name: %1").arg(task->name());
if (!task->notScheduled()) {
- w += "\n"; w += i18n("Start: %1").tqarg(locale->formatDateTime(task->startTime()));
- w += "\n"; w += i18n("End: %1").tqarg(locale->formatDateTime(task->endTime()));
+ w += "\n"; w += i18n("Start: %1").arg(locale->formatDateTime(task->startTime()));
+ w += "\n"; w += i18n("End: %1").arg(locale->formatDateTime(task->endTime()));
if (m_showProgress) {
- w += "\n"; w += i18n("Completion: %1%").tqarg(task->progress().percentFinished);
+ w += "\n"; w += i18n("Completion: %1%").arg(task->progress().percentFinished);
}
if (task->positiveFloat() > Duration::zeroDuration) {
- w += "\n" + i18n("Float: %1").tqarg(task->positiveFloat().toString(Duration::Format_i18nDayTime));
+ w += "\n" + i18n("Float: %1").arg(task->positiveFloat().toString(Duration::Format_i18nDayTime));
}
if (task->inCriticalPath()) {
w += "\n" + i18n("Critical path");
@@ -623,7 +623,7 @@ void GanttView::modifyTask(KDGanttViewItem *item, Task *task)
if (task->resourceOverbooked()) {
ok = false;
TQStringList rl = task->overbookedResources();
- sts += "\n" + i18n("arg: list of resources", "Resource overbooked: %1").tqarg(rl.join(","));
+ sts += "\n" + i18n("arg: list of resources", "Resource overbooked: %1").arg(rl.join(","));
}
if (!m_showNoInformation && m_project && m_project->notScheduled()) {
@@ -684,12 +684,12 @@ void GanttView::modifyMilestone(KDGanttViewItem *item, Task *task)
}
//TODO: Show progress
- TQString w = i18n("Name: %1").tqarg(task->name());
+ TQString w = i18n("Name: %1").arg(task->name());
if (!task->notScheduled()) {
- w += "\n" + i18n("Time: %1").tqarg(locale->formatDateTime(task->startTime()));
+ w += "\n" + i18n("Time: %1").arg(locale->formatDateTime(task->startTime()));
if (task->positiveFloat() > Duration::zeroDuration) {
- w += "\n" + i18n("Float: %1").tqarg(task->positiveFloat().toString(Duration::Format_i18nDayTime));
+ w += "\n" + i18n("Float: %1").arg(task->positiveFloat().toString(Duration::Format_i18nDayTime));
}
if (task->inCriticalPath()) {
w += "\n" + i18n("Critical path");
@@ -1048,7 +1048,7 @@ void GanttView::print(KPrinter &prt) {
p.drawRect(0,0,metrics.width(),metrics.height());
TQString text;
int hei = 0;
- text = KGlobal::locale()->formatDateTime(TQDateTime::tqcurrentDateTime());
+ text = KGlobal::locale()->formatDateTime(TQDateTime::currentDateTime());
TQRect r = p.boundingRect(metrics.width()-1,0,0,0, TQt::AlignRight, text );
p.drawText( r, TQt::AlignRight, text );
hei = r.height();