summaryrefslogtreecommitdiffstats
path: root/korganizer/kotodoviewitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kotodoviewitem.cpp')
-rw-r--r--korganizer/kotodoviewitem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp
index 3fe929b64..e7fad7dae 100644
--- a/korganizer/kotodoviewitem.cpp
+++ b/korganizer/kotodoviewitem.cpp
@@ -240,7 +240,7 @@ bool KOTodoViewItem::isAlternate()
#endif
}
-void KOTodoViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment)
+void KOTodoViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{
TQColorGroup _cg = cg;
// If no todo is set, just don't paint anything...
@@ -249,12 +249,12 @@ void KOTodoViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column,
if (isAlternate())
_cg.setColor(TQColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground());
if (mTodo->hasDueDate()) {
- if (mTodo->dtDue().date()==TQDate::tqcurrentDate() &&
+ if (mTodo->dtDue().date()==TQDate::currentDate() &&
!mTodo->isCompleted()) {
_cg.setColor(TQColorGroup::Base, KOPrefs::instance()->mTodoDueTodayColor);
_cg.setColor(TQColorGroup::Text, getTextColor(KOPrefs::instance()->mTodoDueTodayColor));
}
- if (mTodo->dtDue().date() < TQDate::tqcurrentDate() &&
+ if (mTodo->dtDue().date() < TQDate::currentDate() &&
!mTodo->isCompleted()) {
_cg.setColor(TQColorGroup::Base, KOPrefs::instance()->mTodoOverdueColor);
_cg.setColor(TQColorGroup::Text, getTextColor(KOPrefs::instance()->mTodoOverdueColor));
@@ -275,6 +275,6 @@ void KOTodoViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column,
KGlobalSettings::highlightColor() );
p->restore();
} else {
- TQCheckListItem::paintCell(p, _cg, column, width, tqalignment);
+ TQCheckListItem::paintCell(p, _cg, column, width, alignment);
}
}