summaryrefslogtreecommitdiffstats
path: root/korganizer/kotodoviewitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kotodoviewitem.cpp')
-rw-r--r--korganizer/kotodoviewitem.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp
index bb03fe32c..02369d91a 100644
--- a/korganizer/kotodoviewitem.cpp
+++ b/korganizer/kotodoviewitem.cpp
@@ -20,8 +20,8 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
As a special exception, permission is given to link this program
- with any edition of Qt, and distribute the resulting executable,
- without including the source code for Qt in the source distribution.
+ with any edition of TQt, and distribute the resulting executable,
+ without including the source code for TQt in the source distribution.
*/
#include "kotodoviewitem.h"
@@ -38,14 +38,14 @@
#include <tqpainter.h>
-KOTodoViewItem::KOTodoViewItem( TQListView *parent, Todo *todo, KOTodoView *kotodo)
- : TQCheckListItem( parent , "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
+KOTodoViewItem::KOTodoViewItem( TQListView *tqparent, Todo *todo, KOTodoView *kotodo)
+ : TQCheckListItem( tqparent , "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
{
construct();
}
-KOTodoViewItem::KOTodoViewItem( KOTodoViewItem *parent, Todo *todo, KOTodoView *kotodo )
- : TQCheckListItem( parent, "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
+KOTodoViewItem::KOTodoViewItem( KOTodoViewItem *tqparent, Todo *todo, KOTodoView *kotodo )
+ : TQCheckListItem( tqparent, "", CheckBox ), mTodo( todo ), mTodoView( kotodo )
{
construct();
}
@@ -119,14 +119,11 @@ int KOTodoViewItem::compare( TQListViewItem *it, int col, bool ascending ) const
}
}
-#if QT_VERSION >= 300
void KOTodoViewItem::paintBranches(TQPainter *p,const TQColorGroup & cg,int w,
int y,int h)
{
TQListViewItem::paintBranches(p,cg,w,y,h);
}
-#else
-#endif
void KOTodoViewItem::construct()
{
@@ -154,7 +151,7 @@ void KOTodoViewItem::construct()
setText( KOTodoView::eDueDateColumn, dtStr );
mEffectiveDueDate = mTodo->dtDue();
KOTodoViewItem *myParent;
- if ( ( myParent = dynamic_cast<KOTodoViewItem *>( parent() ) ) )
+ if ( ( myParent = dynamic_cast<KOTodoViewItem *>( tqparent() ) ) )
if ( !myParent->mEffectiveDueDate.isValid() ||
myParent->mEffectiveDueDate > mEffectiveDueDate ) {
myParent->mEffectiveDueDate = mEffectiveDueDate;
@@ -216,12 +213,12 @@ bool KOTodoViewItem::isAlternate()
{
KOTodoViewItem *item;
bool previous = true;
- if (TQListViewItem::parent())
+ if (TQListViewItem::tqparent())
{
- item = dynamic_cast<KOTodoViewItem *>(TQListViewItem::parent());
+ item = dynamic_cast<KOTodoViewItem *>(TQListViewItem::tqparent());
if (item)
previous = item->m_odd;
- item = dynamic_cast<KOTodoViewItem *>(TQListViewItem::parent()->firstChild());
+ item = dynamic_cast<KOTodoViewItem *>(TQListViewItem::tqparent()->firstChild());
}
else
{