summaryrefslogtreecommitdiffstats
path: root/src/basketlistview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 14:58:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 14:58:21 -0600
commit7864df7a5e0a69bb3e525ec3e47256bdcbf2832b (patch)
tree3aa53b371fc2482fb6bea9f8eca16b9524c1b332 /src/basketlistview.cpp
parent3cedb6a5f7a9c3e0c04303289e025ce6fe91e164 (diff)
downloadbasket-7864df7a5e0a69bb3e525ec3e47256bdcbf2832b.tar.gz
basket-7864df7a5e0a69bb3e525ec3e47256bdcbf2832b.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/basketlistview.cpp')
-rw-r--r--src/basketlistview.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/basketlistview.cpp b/src/basketlistview.cpp
index a747a6d..0ad8871 100644
--- a/src/basketlistview.cpp
+++ b/src/basketlistview.cpp
@@ -633,7 +633,7 @@ private:
/** class BasketTreeListView: */
BasketTreeListView::BasketTreeListView(TQWidget *parent, const char *name)
- : KListView(parent, name), m_autoOpenItem(0)
+ : TDEListView(parent, name), m_autoOpenItem(0)
, m_itemUnderDrag(0)
{
setWFlags(TQt::WStaticContents | WNoAutoErase);
@@ -646,7 +646,7 @@ BasketTreeListView::BasketTreeListView(TQWidget *parent, const char *name)
void BasketTreeListView::viewportResizeEvent(TQResizeEvent *event)
{
- KListView::viewportResizeEvent(event);
+ TDEListView::viewportResizeEvent(event);
triggerUpdate();
}
@@ -665,7 +665,7 @@ void BasketTreeListView::contentsDragEnterEvent(TQDragEnterEvent *event)
update();
}
- KListView::contentsDragEnterEvent(event);
+ TDEListView::contentsDragEnterEvent(event);
}
void BasketTreeListView::removeExpands()
@@ -687,7 +687,7 @@ void BasketTreeListView::contentsDragLeaveEvent(TQDragLeaveEvent *event)
m_autoOpenTimer.stop();
setItemUnderDrag(0);
removeExpands();
- KListView::contentsDragLeaveEvent(event);
+ TDEListView::contentsDragLeaveEvent(event);
}
void BasketTreeListView::contentsDropEvent(TQDropEvent *event)
@@ -695,7 +695,7 @@ void BasketTreeListView::contentsDropEvent(TQDropEvent *event)
std::cout << "BasketTreeListView::contentsDropEvent()" << std::endl;
if (event->provides("application/x-qlistviewitem"))
{
- KListView::contentsDropEvent(event);
+ TDEListView::contentsDropEvent(event);
}
else {
std::cout << "Forwarding dropped data to the basket" << std::endl;
@@ -721,7 +721,7 @@ void BasketTreeListView::contentsDragMoveEvent(TQDragMoveEvent *event)
{
std::cout << "BasketTreeListView::contentsDragMoveEvent" << std::endl;
if (event->provides("application/x-qlistviewitem"))
- KListView::contentsDragMoveEvent(event);
+ TDEListView::contentsDragMoveEvent(event);
else {
TQListViewItem *item = itemAt(contentsToViewport(event->pos()));
BasketListViewItem* bitem = dynamic_cast<BasketListViewItem*>(item);
@@ -735,7 +735,7 @@ void BasketTreeListView::contentsDragMoveEvent(TQDragMoveEvent *event)
}
setItemUnderDrag(bitem);
- KListView::contentsDragMoveEvent(event); // FIXME: ADDED
+ TDEListView::contentsDragMoveEvent(event); // FIXME: ADDED
}
}
@@ -767,7 +767,7 @@ void BasketTreeListView::autoOpen()
void BasketTreeListView::resizeEvent(TQResizeEvent *event)
{
- KListView::resizeEvent(event);
+ TDEListView::resizeEvent(event);
}
void BasketTreeListView::paintEmptyArea(TQPainter *painter, const TQRect &rect)
@@ -793,12 +793,12 @@ void BasketTreeListView::paintEmptyArea(TQPainter *painter, const TQRect &rect)
}
/** We should NEVER get focus (because of TQ_NoFocus focusPolicy())
- * but KListView can programatically give us the focus.
+ * but TDEListView can programatically give us the focus.
* So we give it to the basket.
*/
void BasketTreeListView::focusInEvent(TQFocusEvent*)
{
- //KListView::focusInEvent(event);
+ //TDEListView::focusInEvent(event);
Basket *basket = Global::bnpView->currentBasket();
if (basket)
basket->setFocus();