diff options
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); |