summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/structtreeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/treeviews/structtreeview.cpp')
-rw-r--r--quanta/treeviews/structtreeview.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/quanta/treeviews/structtreeview.cpp b/quanta/treeviews/structtreeview.cpp
index c6c23fde..24f48174 100644
--- a/quanta/treeviews/structtreeview.cpp
+++ b/quanta/treeviews/structtreeview.cpp
@@ -57,8 +57,8 @@
#include "structtreeview.moc"
extern GroupElementMapList globalGroupMap;
-StructTreeView::StructTreeView(TQWidget *tqparent, const char *name )
- : KListView(tqparent,name), m_marker(0), m_draggedItem(0)/*, m_thisWidget(0)*/
+StructTreeView::StructTreeView(TQWidget *parent, const char *name )
+ : KListView(parent,name), m_marker(0), m_draggedItem(0)/*, m_thisWidget(0)*/
{
for (int i = 0; i < 15; i++)
groupOpened.append(false);
@@ -276,27 +276,27 @@ void StructTreeView::buildTree(Node *baseNode, int openLevel, bool groupOnly)
currentItem = item;
} else
{
- //go up some levels, to the tqparent, if the node has no child or next
+ //go up some levels, to the parent, if the node has no child or next
while (currentNode)
{
level--;
- //parentItem = dynamic_cast<StructTreeTag*>(parentItem->tqparent());
- if (currentNode->tqparent && currentNode->tqparent->next)
+ //parentItem = dynamic_cast<StructTreeTag*>(parentItem->parent());
+ if (currentNode->parent && currentNode->parent->next)
{
- currentNode = currentNode->tqparent->next;
+ currentNode = currentNode->parent->next;
break;
} else
{
- currentNode = currentNode->tqparent;
+ currentNode = currentNode->parent;
}
}
if (!groupOnly && currentNode)
{
if (currentNode->prev)
currentItem = static_cast<StructTreeTag*>(currentNode->prev->mainListItem);
- if (currentNode->tqparent)
+ if (currentNode->parent)
{
- parentItem = static_cast<StructTreeTag*>(currentNode->tqparent->mainListItem);
+ parentItem = static_cast<StructTreeTag*>(currentNode->parent->mainListItem);
if (!parentItem)
{
parentItem = top;
@@ -800,7 +800,7 @@ bool StructTreeView::acceptDrag(TQDropEvent* e) const
kdDebug(25001) << "PROIBIDO! #2" << endl;
return false;
}
- TQTag* nodeTQTag = QuantaCommon::tagFromDTD(after_node->tqparent);
+ TQTag* nodeTQTag = QuantaCommon::tagFromDTD(after_node->parent);
bool is_child = (nodeTQTag && nodeTQTag->isChild(dragged_node));
if(!is_child)
@@ -818,7 +818,7 @@ bool StructTreeView::acceptDrag(TQDropEvent* e) const
return is_child;
}
-void StructTreeView::slotDropped(TQDropEvent* e, TQListViewItem* tqparent, TQListViewItem* after)
+void StructTreeView::slotDropped(TQDropEvent* e, TQListViewItem* parent, TQListViewItem* after)
{
if(!e)
return;
@@ -837,10 +837,10 @@ void StructTreeView::slotDropped(TQDropEvent* e, TQListViewItem* tqparent, TQLis
switch(id) {
case DRAG_COPY:
- copySelectedItems(tqparent, after);
+ copySelectedItems(parent, after);
break;
case DRAG_MOVE:
- moveSelectedItems(tqparent, after);
+ moveSelectedItems(parent, after);
break;
case DRAG_CANCEL: // cancelled by menuitem
break;
@@ -875,9 +875,9 @@ void StructTreeView::contentsMousePressEvent(TQMouseEvent* e)
KListView::contentsMousePressEvent(e);
}
-void StructTreeView::copySelectedItems(TQListViewItem* tqparent, TQListViewItem* after)
+void StructTreeView::copySelectedItems(TQListViewItem* parent, TQListViewItem* after)
{
- StructTreeTag* parent_item = dynamic_cast<StructTreeTag*> (tqparent);
+ StructTreeTag* parent_item = dynamic_cast<StructTreeTag*> (parent);
StructTreeTag* after_item = dynamic_cast<StructTreeTag*> (after);
if(!parent_item/* || !after_item*/) // can happen if the element is inserted as the first child
return;
@@ -913,9 +913,9 @@ void StructTreeView::copySelectedItems(TQListViewItem* tqparent, TQListViewItem*
write->docUndoRedo->addNewModifsSet(modifs, undoRedo::NodeTreeModif, 0, false);
}
-void StructTreeView::moveSelectedItems(TQListViewItem* tqparent, TQListViewItem* after)
+void StructTreeView::moveSelectedItems(TQListViewItem* parent, TQListViewItem* after)
{
- StructTreeTag* parent_item = dynamic_cast<StructTreeTag*> (tqparent);
+ StructTreeTag* parent_item = dynamic_cast<StructTreeTag*> (parent);
StructTreeTag* after_item = dynamic_cast<StructTreeTag*> (after);
if(!parent_item || !after_item)
return;