diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 631d7b9b0878ca3842496b5719f9c5803335e150 (patch) | |
tree | d09fe0c8cd6edfd28c9c7947b0af60ccc75fbb8d /src/basketlistview.cpp | |
parent | 33f08e93132a53bf14f41f5f1e567eeea832b336 (diff) | |
download | basket-631d7b9b0878ca3842496b5719f9c5803335e150.tar.gz basket-631d7b9b0878ca3842496b5719f9c5803335e150.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/basketlistview.cpp')
-rw-r--r-- | src/basketlistview.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/basketlistview.cpp b/src/basketlistview.cpp index 53a7e94..434e1a9 100644 --- a/src/basketlistview.cpp +++ b/src/basketlistview.cpp @@ -39,32 +39,32 @@ /** class BasketListViewItem: */ -BasketListViewItem::BasketListViewItem(TQListView *tqparent, Basket *basket) - : TQListViewItem(tqparent), m_basket(basket) +BasketListViewItem::BasketListViewItem(TQListView *parent, Basket *basket) + : TQListViewItem(parent), m_basket(basket) , m_isUnderDrag(false) , m_isAbbreviated(false) { setDropEnabled(true); } -BasketListViewItem::BasketListViewItem(TQListViewItem *tqparent, Basket *basket) - : TQListViewItem(tqparent), m_basket(basket) +BasketListViewItem::BasketListViewItem(TQListViewItem *parent, Basket *basket) + : TQListViewItem(parent), m_basket(basket) , m_isUnderDrag(false) , m_isAbbreviated(false) { setDropEnabled(true); } -BasketListViewItem::BasketListViewItem(TQListView *tqparent, TQListViewItem *after, Basket *basket) - : TQListViewItem(tqparent, after), m_basket(basket) +BasketListViewItem::BasketListViewItem(TQListView *parent, TQListViewItem *after, Basket *basket) + : TQListViewItem(parent, after), m_basket(basket) , m_isUnderDrag(false) , m_isAbbreviated(false) { setDropEnabled(true); } -BasketListViewItem::BasketListViewItem(TQListViewItem *tqparent, TQListViewItem *after, Basket *basket) - : TQListViewItem(tqparent, after), m_basket(basket) +BasketListViewItem::BasketListViewItem(TQListViewItem *parent, TQListViewItem *after, Basket *basket) + : TQListViewItem(parent, after), m_basket(basket) , m_isUnderDrag(false) , m_isAbbreviated(false) { @@ -215,10 +215,10 @@ void BasketListViewItem::moveChildsBaskets() TQListViewItem *nextOne; for (TQListViewItem *child = firstChild(); child; child = nextOne) { nextOne = child->nextSibling(); - // Re-insert the item with the good tqparent: + // Re-insert the item with the good parent: takeItem(child); - if (tqparent()) - tqparent()->insertItem(child); + if (parent()) + parent()->insertItem(child); else listView()->insertItem(child); // And move it at the good place: @@ -230,19 +230,19 @@ void BasketListViewItem::moveChildsBaskets() void BasketListViewItem::ensureVisible() { BasketListViewItem *item = this; - while (item->tqparent()) { - item = (BasketListViewItem*)(item->tqparent()); + while (item->parent()) { + item = (BasketListViewItem*)(item->parent()); item->setOpen(true); } } bool BasketListViewItem::isShown() { - TQListViewItem *item = tqparent(); + TQListViewItem *item = parent(); while (item) { if (!item->isOpen()) return false; - item = item->tqparent(); + item = item->parent(); } return true; } @@ -303,7 +303,7 @@ TQPixmap BasketListViewItem::circledTextPixmap(const TQString &text, int height, curvePainter.fillRect(3*(height / 6), 0, 3*(width - 2 * height / 6), 3*(height), curvePainter.brush()); curvePainter.end(); - // Apply the curved rectangle as the tqmask of the gradient: + // Apply the curved rectangle as the mask of the gradient: gradient.setMask(curvedRectangle); TQImage resultImage = gradient.convertToImage(); resultImage.setAlphaBuffer(true); @@ -632,8 +632,8 @@ private: /** class BasketTreeListView: */ -BasketTreeListView::BasketTreeListView(TQWidget *tqparent, const char *name) - : KListView(tqparent, name), m_autoOpenItem(0) +BasketTreeListView::BasketTreeListView(TQWidget *parent, const char *name) + : KListView(parent, name), m_autoOpenItem(0) , m_itemUnderDrag(0) { setWFlags(TQt::WStaticContents | WNoAutoErase); |