summaryrefslogtreecommitdiffstats
path: root/kdeui/klistview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commitdb9d51186b28bc2252032458b433ba5f8d1972bc (patch)
treeec5f2aad8e3a76a72488a3c354a2144d97a84942 /kdeui/klistview.cpp
parent6e21bc798ba1066147d69dcc2d5c222ffafb9a90 (diff)
downloadtdelibs-db9d51186b28bc2252032458b433ba5f8d1972bc.tar.gz
tdelibs-db9d51186b28bc2252032458b433ba5f8d1972bc.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/klistview.cpp')
-rw-r--r--kdeui/klistview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kdeui/klistview.cpp b/kdeui/klistview.cpp
index 29c563389..e7b13325d 100644
--- a/kdeui/klistview.cpp
+++ b/kdeui/klistview.cpp
@@ -252,7 +252,7 @@ static TQListViewItem *prevItem (TQListViewItem *pi)
/* Does what the TQListViewItem::previousSibling()
* of my dreams would do.
*/
- if (pa && pa->tqparent() == pi->tqparent())
+ if (pa && pa->parent() == pi->parent())
return pa;
return 0;
@@ -278,8 +278,8 @@ void KListViewLineEdit::selectNextCell (TQListViewItem *pitem, int column, bool
const int ncols = p->columns();
const int dir = forward ? +1 : -1;
const int restart = forward ? 0 : (ncols - 1);
- TQListViewItem *top = (pitem && pitem->tqparent())
- ? pitem->tqparent()->firstChild()
+ TQListViewItem *top = (pitem && pitem->parent())
+ ? pitem->parent()->firstChild()
: p->firstChild();
TQListViewItem *pi = pitem;
@@ -1100,7 +1100,7 @@ void KListView::findDrop(const TQPoint &pos, TQListViewItem *&parent, TQListView
// Ok, there's one more level of complexity. We may want to become a new
// sibling, but of an upper-level group, rather than the "above" item
- TQListViewItem * betterAbove = above->tqparent();
+ TQListViewItem * betterAbove = above->parent();
TQListViewItem * last = above;
while ( betterAbove )
{
@@ -1113,14 +1113,14 @@ void KListView::findDrop(const TQPoint &pos, TQListViewItem *&parent, TQListView
else
break; // not enough on the left, so stop
last = betterAbove;
- betterAbove = betterAbove->tqparent(); // up one level
+ betterAbove = betterAbove->parent(); // up one level
} else
break; // we're among the child of betterAbove, not after the last one
}
}
// set as sibling
after = above;
- parent = after ? after->tqparent() : 0L ;
+ parent = after ? after->parent() : 0L ;
}
TQListViewItem* KListView::lastChild () const
@@ -1269,7 +1269,7 @@ void KListView::moveItem(TQListViewItem *item, TQListViewItem *parent, TQListVie
{
if(i == item)
return;
- i = i->tqparent();
+ i = i->parent();
}
if (after)
@@ -1280,8 +1280,8 @@ void KListView::moveItem(TQListViewItem *item, TQListViewItem *parent, TQListVie
// Basically reimplementing the TQListViewItem(TQListViewItem*, TQListViewItem*) constructor
// in here, without ever deleting the item.
- if (item->tqparent())
- item->tqparent()->takeItem(item);
+ if (item->parent())
+ item->parent()->takeItem(item);
else
takeItem(item);
@@ -2310,12 +2310,12 @@ bool KListViewItem::isAlternate()
{
KListViewItem *item;
bool previous = true;
- if (tqparent())
+ if (parent())
{
- item = dynamic_cast<KListViewItem *>(tqparent());
+ item = dynamic_cast<KListViewItem *>(parent());
if (item)
previous = item->m_odd;
- item = dynamic_cast<KListViewItem *>(tqparent()->firstChild());
+ item = dynamic_cast<KListViewItem *>(parent()->firstChild());
}
else
{