From 36a36a5c1015aa0d03f4515c401e907ddb9d6291 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/kotodoview.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'korganizer/kotodoview.cpp') diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index ecd680541..73a9d126e 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -64,10 +64,10 @@ using namespace KOrg; #include "calprinter.h" #endif -KOTodoListViewToolTip::KOTodoListViewToolTip (TQWidget *tqparent, +KOTodoListViewToolTip::KOTodoListViewToolTip (TQWidget *parent, Calendar *calendar, KOTodoListView *lv ) - :TQToolTip(tqparent), mCalendar( calendar ) + :TQToolTip(parent), mCalendar( calendar ) { todolist=lv; } @@ -100,8 +100,8 @@ void KOTodoListViewToolTip::maybeTip( const TQPoint & pos) -KOTodoListView::KOTodoListView( TQWidget *tqparent, const char *name ) - : KListView( tqparent, name ), mCalendar( 0 ), mChanger( 0 ) +KOTodoListView::KOTodoListView( TQWidget *parent, const char *name ) + : KListView( parent, name ), mCalendar( 0 ), mChanger( 0 ) { mOldCurrent = 0; mMousePressed = false; @@ -227,7 +227,7 @@ void KOTodoListView::contentsDropEvent( TQDropEvent *e ) mChanger->changeIncidence( oldTodo, existingTodo, KOGlobals::RELATION_MODIFIED, this ); mChanger->endChange( existingTodo, 0, TQString() ); } else { - KMessageBox::sorry( this, i18n("Unable to change to-do's tqparent, " + KMessageBox::sorry( this, i18n("Unable to change to-do's parent, " "because the to-do cannot be locked.") ); } delete oldTodo; @@ -360,8 +360,8 @@ void KOTodoListView::contentsMouseDoubleClickEvent(TQMouseEvent *e) ///////////////////////////////////////////////////////////////////////////// -KOTodoView::KOTodoView( Calendar *calendar, TQWidget *tqparent, const char* name) - : KOrg::BaseView( calendar, tqparent, name ) +KOTodoView::KOTodoView( Calendar *calendar, TQWidget *parent, const char* name) + : KOrg::BaseView( calendar, parent, name ) { TQBoxLayout *topLayout = new TQVBoxLayout( this ); @@ -558,7 +558,7 @@ void KOTodoView::updateView() */ // Put for each Event a KOTodoViewItem in the list view. Don't rely on a - // specific order of events. That means that we have to generate tqparent items + // specific order of events. That means that we have to generate parent items // recursively for proper hierarchical display of Todos. mTodoMap.clear(); Todo::List::ConstIterator it; @@ -612,7 +612,7 @@ TQMap::ConstIterator // and one into the map. Sure finding is more easy but why? -zecke KOTodoViewItem *todoItem; - // in case we found a related tqparent, which has no KOTodoViewItem yet, this must + // in case we found a related parent, which has no KOTodoViewItem yet, this must // be the case where 2 items refer to each other, therefore simply create item as root item if ( *itemIterator == 0 ) { todo->setRelatedTo(0); // break the recursion, else we will have troubles later @@ -703,12 +703,12 @@ void KOTodoView::changeIncidenceDisplay(Incidence *incidence, int action) scheduleRemoveTodoItem( todoItem ); } else { // correctly update changes in relations - Todo*tqparent = dynamic_cast( todo->relatedTo() ); + Todo*parent = dynamic_cast( todo->relatedTo() ); KOTodoViewItem*parentItem = 0; - if ( tqparent && mTodoMap.contains(tqparent) ) { - parentItem = mTodoMap[ tqparent ]; + if ( parent && mTodoMap.contains(parent) ) { + parentItem = mTodoMap[ parent ]; } - if ( todoItem->tqparent() != parentItem ) { + if ( todoItem->parent() != parentItem ) { // The relations changed if ( parentItem ) { parentItem->insertItem( todoItem ); -- cgit v1.2.1