diff options
Diffstat (limited to 'libkdepim/ksubscription.cpp')
-rw-r--r-- | libkdepim/ksubscription.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libkdepim/ksubscription.cpp b/libkdepim/ksubscription.cpp index f5aef4a4b..b611e1260 100644 --- a/libkdepim/ksubscription.cpp +++ b/libkdepim/ksubscription.cpp @@ -105,7 +105,7 @@ void GroupItem::setOn( bool on ) //------------------------------------------------------------------------------ void GroupItem::stateChange( bool on ) { - // delegate to tqparent + // delegate to parent if ( !mIgnoreStateChange ) mBrowser->changeItemState(this, on); } @@ -156,8 +156,8 @@ void GroupItem::setVisible( bool b ) for ( ; it.current(); ++it) { // move the checkitem to top - TQListViewItem* tqparent = it.current()->tqparent(); - if (tqparent) tqparent->takeItem(it.current()); + TQListViewItem* parent = it.current()->parent(); + if (parent) parent->takeItem(it.current()); listView()->insertItem(it.current()); } TQListViewItem::setVisible(false); @@ -206,9 +206,9 @@ void GroupItem::setup() //============================================================================= -KSubscription::KSubscription( TQWidget *tqparent, const TQString &caption, +KSubscription::KSubscription( TQWidget *parent, const TQString &caption, KAccount * acct, int buttons, const TQString &user1, bool descriptionColumn ) - : KDialogBase( tqparent, 0, true, caption, buttons | Help | Ok | Cancel, Ok, + : KDialogBase( parent, 0, true, caption, buttons | Help | Ok | Cancel, Ok, true, i18n("Reload &List"), user1 ), mAcct( acct ) { @@ -445,7 +445,7 @@ void KSubscription::changeItemState( GroupItem* item, bool on ) { if (!itemInListView(unsubView, item->info())) { - TQListViewItem *p = item->tqparent(); + TQListViewItem *p = item->parent(); while (p) { // make sure all parents are subscribed @@ -457,7 +457,7 @@ void KSubscription::changeItemState( GroupItem* item, bool on ) pi->setIgnoreStateChange(false); new GroupItem(subView, pi->info(), this); } - p = p->tqparent(); + p = p->parent(); } new GroupItem(subView, item->info(), this); } @@ -560,7 +560,7 @@ void KSubscription::restoreOriginalParent() { TQListViewItem* origParent = static_cast<GroupItem*>(it.current())-> originalParent(); - if (origParent && origParent != it.current()->tqparent()) + if (origParent && origParent != it.current()->parent()) { // remember this to avoid messing up the iterator move.append(it.current()); @@ -569,7 +569,7 @@ void KSubscription::restoreOriginalParent() TQPtrListIterator<TQListViewItem> it2( move ); for ( ; it2.current(); ++it2) { - // restore the original tqparent + // restore the original parent TQListViewItem* origParent = static_cast<GroupItem*>(it2.current())-> originalParent(); groupView->takeItem(it2.current()); @@ -612,12 +612,12 @@ void KSubscription::slotLoadingComplete() noTreeCB->setEnabled(true); subCB->setEnabled(true); - // remember the correct tqparent + // remember the correct parent TQListViewItemIterator it(groupView); for ( ; it.current(); ++it) { static_cast<GroupItem*>(it.current())-> - setOriginalParent( it.current()->tqparent() ); + setOriginalParent( it.current()->parent() ); } emit listChanged(); |