summaryrefslogtreecommitdiffstats
path: root/korganizer/plugins/projectview
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/plugins/projectview')
-rw-r--r--korganizer/plugins/projectview/koprojectview.cpp16
-rw-r--r--korganizer/plugins/projectview/koprojectview.h7
-rw-r--r--korganizer/plugins/projectview/projectview.cpp8
-rw-r--r--korganizer/plugins/projectview/projectview.h1
4 files changed, 17 insertions, 15 deletions
diff --git a/korganizer/plugins/projectview/koprojectview.cpp b/korganizer/plugins/projectview/koprojectview.cpp
index d5abb1f42..d0d2db381 100644
--- a/korganizer/plugins/projectview/koprojectview.cpp
+++ b/korganizer/plugins/projectview/koprojectview.cpp
@@ -45,11 +45,11 @@
using namespace KOrg;
-KOProjectViewItem::KOProjectViewItem(Todo *event,KGanttItem* parentTask,
+KOProjectViewItem::KOProjectViewItem(Todo *event,KGanttItem* tqparentTask,
const TQString& text,
const TQDateTime& start,
const TQDateTime& end) :
- KGanttItem(parentTask,text,start,end)
+ KGanttItem(tqparentTask,text,start,end)
{
mEvent = event;
}
@@ -64,9 +64,9 @@ Todo *KOProjectViewItem::event()
}
-KOProjectView::KOProjectView(Calendar *calendar,TQWidget* parent,
+KOProjectView::KOProjectView(Calendar *calendar,TQWidget* tqparent,
const char* name) :
- KOrg::BaseView(calendar,parent,name)
+ KOrg::BaseView(calendar,tqparent,name)
{
TQBoxLayout *topLayout = new TQVBoxLayout(this);
@@ -183,7 +183,7 @@ void KOProjectView::updateView()
*/
// Put for each Event a KOProjectViewItem in the list view. Don't rely on a
- // specific order of events. That means that we have to generate parent items
+ // specific order of events. That means that we have to generate tqparent items
// recursively for proper hierarchical display of Todos.
mTodoMap.clear();
Todo::List::ConstIterator it;
@@ -202,7 +202,7 @@ TQMap<Todo *,KGanttItem *>::ConstIterator
if (relatedTodo) {
// kdDebug(5850) << " has Related" << endl;
TQMap<Todo *,KGanttItem *>::ConstIterator itemIterator;
- itemIterator = mTodoMap.find(relatedTodo);
+ itemIterator = mTodoMap.tqfind(relatedTodo);
if (itemIterator == mTodoMap.end()) {
// kdDebug(5850) << " related not yet in list" << endl;
itemIterator = insertTodoItem (relatedTodo);
@@ -216,7 +216,7 @@ TQMap<Todo *,KGanttItem *>::ConstIterator
}
}
-KGanttItem *KOProjectView::createTask(KGanttItem *parent,Todo *todo)
+KGanttItem *KOProjectView::createTask(KGanttItem *tqparent,Todo *todo)
{
TQDateTime startDt;
TQDateTime endDt;
@@ -237,7 +237,7 @@ KGanttItem *KOProjectView::createTask(KGanttItem *parent,Todo *todo)
endDt = todo->dtDue();
}
- KGanttItem *task = new KOProjectViewItem(todo,parent,todo->summary(),startDt,
+ KGanttItem *task = new KOProjectViewItem(todo,tqparent,todo->summary(),startDt,
endDt);
connect(task,TQT_SIGNAL(changed(KGanttItem*, KGanttItem::Change)),
TQT_SLOT(taskChanged(KGanttItem*,KGanttItem::Change)));
diff --git a/korganizer/plugins/projectview/koprojectview.h b/korganizer/plugins/projectview/koprojectview.h
index 39062179e..b71afbd0a 100644
--- a/korganizer/plugins/projectview/koprojectview.h
+++ b/korganizer/plugins/projectview/koprojectview.h
@@ -41,12 +41,12 @@ class TQStrList;
class TQListView;
/**
- This class provides an item of the project view. It is a xQTask with
+ This class provides an item of the project view. It is a xTQTask with
an additional Event attribute.
*/
class KOProjectViewItem : public KGanttItem {
public:
- KOProjectViewItem(Todo *,KGanttItem* parentTask, const TQString& text,
+ KOProjectViewItem(Todo *,KGanttItem* tqparentTask, const TQString& text,
const TQDateTime& start, const TQDateTime& end);
~KOProjectViewItem();
@@ -66,8 +66,9 @@ class KOProjectViewItem : public KGanttItem {
class KOProjectView : public KOrg::BaseView
{
Q_OBJECT
+ TQ_OBJECT
public:
- KOProjectView(Calendar *, TQWidget* parent=0, const char* name=0 );
+ KOProjectView(Calendar *, TQWidget* tqparent=0, const char* name=0 );
~KOProjectView() {}
Incidence::List selectedIncidences();
diff --git a/korganizer/plugins/projectview/projectview.cpp b/korganizer/plugins/projectview/projectview.cpp
index 2e7b3dc61..d6a009c8e 100644
--- a/korganizer/plugins/projectview/projectview.cpp
+++ b/korganizer/plugins/projectview/projectview.cpp
@@ -35,18 +35,18 @@ using namespace KOrg;
class ProjectViewFactory : public KOrg::PartFactory {
public:
- KOrg::Part *create(KOrg::MainWindow *parent, const char *name)
+ KOrg::Part *create(KOrg::MainWindow *tqparent, const char *name)
{
KGlobal::locale()->insertCatalogue( "kgantt" );
- return new ProjectView(parent,name);
+ return new ProjectView(tqparent,name);
}
};
K_EXPORT_COMPONENT_FACTORY( libkorg_projectview, ProjectViewFactory )
-ProjectView::ProjectView(KOrg::MainWindow *parent, const char *name) :
- KOrg::Part(parent,name), mView(0)
+ProjectView::ProjectView(KOrg::MainWindow *tqparent, const char *name) :
+ KOrg::Part(tqparent,name), mView(0)
{
setInstance( new KInstance( "korganizer" ) );
diff --git a/korganizer/plugins/projectview/projectview.h b/korganizer/plugins/projectview/projectview.h
index a3f372a87..c6059650b 100644
--- a/korganizer/plugins/projectview/projectview.h
+++ b/korganizer/plugins/projectview/projectview.h
@@ -25,6 +25,7 @@
class ProjectView : public KOrg::Part {
Q_OBJECT
+ TQ_OBJECT
public:
ProjectView(KOrg::MainWindow *, const char *);
~ProjectView();