summaryrefslogtreecommitdiffstats
path: root/bibletime/frontend/mainindex/cmainindex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bibletime/frontend/mainindex/cmainindex.cpp')
-rw-r--r--bibletime/frontend/mainindex/cmainindex.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/bibletime/frontend/mainindex/cmainindex.cpp b/bibletime/frontend/mainindex/cmainindex.cpp
index 613aed3..9762164 100644
--- a/bibletime/frontend/mainindex/cmainindex.cpp
+++ b/bibletime/frontend/mainindex/cmainindex.cpp
@@ -292,7 +292,7 @@ void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewIt
}
//finally do the drop, either with external drop data or with the moved items' data
- CItemBase* const tqparentItem = dynamic_cast<CItemBase*>(tqparent);
+ CItemBase* const parentItem = dynamic_cast<CItemBase*>(tqparent);
CItemBase* const afterItem = dynamic_cast<CItemBase*>(after);
bool removeSelectedItems = true;
@@ -305,11 +305,11 @@ void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewIt
afterItem->setOpen(true);
afterItem->dropped(e); //inserts new items, moving only works on the same level
}
- else if (afterItem && !afterItem->isFolder() && tqparentItem) {
+ else if (afterItem && !afterItem->isFolder() && parentItem) {
const bool justMoveSelected =
(e->source() == viewport())
&& m_itemsMovable
- && tqparentItem->acceptDrop(e)
+ && parentItem->acceptDrop(e)
&& !afterItem->acceptDrop(e);
if (justMoveSelected) {
@@ -324,18 +324,18 @@ void CMainIndex::dropped( TQDropEvent* e, TQListViewItem* tqparent, TQListViewIt
afterItem->dropped(e, after);
}
else { //insert in the tqparent folder and then move the inserted items
- tqparentItem->dropped(e, after);
+ parentItem->dropped(e, after);
}
}
- tqparentItem->setOpen(true);
+ parentItem->setOpen(true);
}
- else if (tqparentItem) { //no after item present, but a tqparent is there
+ else if (parentItem) { //no after item present, but a tqparent is there
moveSelectedItems = false;
removeSelectedItems = false;
- tqparentItem->setOpen(true);
- tqparentItem->dropped(e);
+ parentItem->setOpen(true);
+ parentItem->dropped(e);
}
if (moveSelectedItems) {