diff options
Diffstat (limited to 'kplato/kptganttview.cc')
-rw-r--r-- | kplato/kptganttview.cc | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kplato/kptganttview.cc b/kplato/kptganttview.cc index fa5bca1e..925598f9 100644 --- a/kplato/kptganttview.cc +++ b/kplato/kptganttview.cc @@ -45,7 +45,7 @@ #include <tqsplitter.h> #include <tqvbox.h> -#include <layout.h> +#include <tqlayout.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 sizeHint() const { - return minimumSizeHint(); //HACK: koshell splitter minimumSize problem + virtual TQSize tqsizeHint() const { + return tqminimumSizeHint(); //HACK: koshell splitter tqminimumSize 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 children + resetDrawn(item->firstChild()); // then my tqchildren } } @@ -336,7 +336,7 @@ void GanttView::removeNotDrawn(KDGanttViewItem *_item) m_currentItem = 0; deleteItem(item); } else { - removeNotDrawn(item->firstChild()); // then my children + removeNotDrawn(item->firstChild()); // then my tqchildren } } } @@ -502,10 +502,10 @@ void GanttView::modifySummaryTask(KDGanttViewItem *item, Task *task) } else { item->setText(TQString()); } - TQString w = i18n("Name: %1").arg(task->name()); + TQString w = i18n("Name: %1").tqarg(task->name()); if (!task->notScheduled()) { - w += "\n" + i18n("Start: %1").arg(locale->formatDateTime(task->startTime())); - w += "\n" + i18n("End: %1").arg(locale->formatDateTime(task->endTime())); + w += "\n" + i18n("Start: %1").tqarg(locale->formatDateTime(task->startTime())); + w += "\n" + i18n("End: %1").tqarg(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").arg(task->name()); + TQString w = i18n("Name: %1").tqarg(task->name()); if (!task->notScheduled()) { - w += "\n"; w += i18n("Start: %1").arg(locale->formatDateTime(task->startTime())); - w += "\n"; w += i18n("End: %1").arg(locale->formatDateTime(task->endTime())); + w += "\n"; w += i18n("Start: %1").tqarg(locale->formatDateTime(task->startTime())); + w += "\n"; w += i18n("End: %1").tqarg(locale->formatDateTime(task->endTime())); if (m_showProgress) { - w += "\n"; w += i18n("Completion: %1%").arg(task->progress().percentFinished); + w += "\n"; w += i18n("Completion: %1%").tqarg(task->progress().percentFinished); } if (task->positiveFloat() > Duration::zeroDuration) { - w += "\n" + i18n("Float: %1").arg(task->positiveFloat().toString(Duration::Format_i18nDayTime)); + w += "\n" + i18n("Float: %1").tqarg(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").arg(rl.join(",")); + sts += "\n" + i18n("arg: list of resources", "Resource overbooked: %1").tqarg(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").arg(task->name()); + TQString w = i18n("Name: %1").tqarg(task->name()); if (!task->notScheduled()) { - w += "\n" + i18n("Time: %1").arg(locale->formatDateTime(task->startTime())); + w += "\n" + i18n("Time: %1").tqarg(locale->formatDateTime(task->startTime())); if (task->positiveFloat() > Duration::zeroDuration) { - w += "\n" + i18n("Float: %1").arg(task->positiveFloat().toString(Duration::Format_i18nDayTime)); + w += "\n" + i18n("Float: %1").tqarg(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::currentDateTime()); + text = KGlobal::locale()->formatDateTime(TQDateTime::tqcurrentDateTime()); TQRect r = p.boundingRect(metrics.width()-1,0,0,0, TQt::AlignRight, text ); p.drawText( r, TQt::AlignRight, text ); hei = r.height(); |