diff options
Diffstat (limited to 'kplato/kptresourceview.cc')
-rw-r--r-- | kplato/kptresourceview.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kplato/kptresourceview.cc b/kplato/kptresourceview.cc index 5ce557cd..addfac34 100644 --- a/kplato/kptresourceview.cc +++ b/kplato/kptresourceview.cc @@ -46,10 +46,10 @@ namespace KPlato { -class ResListView : public KListView { +class ResListView : public TDEListView { public: ResListView(TQWidget * parent = 0, const char* name=0) - : KListView(parent, name) + : TDEListView(parent, name) {} int headerHeight() const { @@ -278,10 +278,10 @@ protected: }; -class ResourceItemPrivate : public KListViewItem { +class ResourceItemPrivate : public TDEListViewItem { public: ResourceItemPrivate(Resource *r, TQListViewItem *parent) - : KListViewItem(parent, r->name()), + : TDEListViewItem(parent, r->name()), resource(r) {} Resource *resource; @@ -293,7 +293,7 @@ public: g.setColor(TQColorGroup::HighlightedText, TQColor(red)); } - KListViewItem::paintCell(p, g, column, width, align); + TDEListViewItem::paintCell(p, g, column, width, align); } void setColumnState(int c, int state=1) { m_columns[c] = state; @@ -302,16 +302,16 @@ private: TQMap<int, int> m_columns; }; -class NodeItemPrivate : public KListViewItem { +class NodeItemPrivate : public TDEListViewItem { public: NodeItemPrivate(Task *n, TQListView *parent) - : KListViewItem(parent, n->name()), + : TDEListViewItem(parent, n->name()), node(n) { init(); } NodeItemPrivate(TQString name, TQListView *parent) - : KListViewItem(parent, name), + : TDEListViewItem(parent, name), node(0) { init(); } @@ -336,7 +336,7 @@ public: if (columnPrio.contains(column)) { g.setColor(TQColorGroup::Base, prioColors[columnPrio[column]]); } - KListViewItem::paintCell(p, g, column, width, align); + TDEListViewItem::paintCell(p, g, column, width, align); } Task *node; @@ -351,10 +351,10 @@ private: TQMap<int, int> columnPrio; }; -class AppointmentItem : public KListViewItem { +class AppointmentItem : public TDEListViewItem { public: AppointmentItem(Appointment *a, TQDate &d, TQListViewItem *parent) - : KListViewItem(parent), + : TDEListViewItem(parent), appointment(a), date(d) {} @@ -432,7 +432,7 @@ void ResourceView::draw(Project &project) TQPtrListIterator<ResourceGroup> it(project.resourceGroups()); for (; it.current(); ++it) { - KListViewItem *item = new KListViewItem(resList, it.current()->name()); + TDEListViewItem *item = new TDEListViewItem(resList, it.current()->name()); item->setOpen(true); drawResources(project, item, it.current()); } |