summaryrefslogtreecommitdiffstats
path: root/kpdf/ui/toc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpdf/ui/toc.cpp')
-rw-r--r--kpdf/ui/toc.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kpdf/ui/toc.cpp b/kpdf/ui/toc.cpp
index 015ba313..a453f20d 100644
--- a/kpdf/ui/toc.cpp
+++ b/kpdf/ui/toc.cpp
@@ -25,8 +25,8 @@
class TOCItem : public KListViewItem
{
public:
- TOCItem( KListView *parent, TOCItem *after, const TQDomElement & e )
- : KListViewItem( parent, after, e.tagName() ), m_element( e )
+ TOCItem( KListView *tqparent, TOCItem *after, const TQDomElement & e )
+ : KListViewItem( tqparent, after, e.tagName() ), m_element( e )
{
#ifdef TOC_ENABLE_PAGE_COLUMN
if ( e.hasAttribute( "Page" ) )
@@ -35,8 +35,8 @@ class TOCItem : public KListViewItem
setMultiLinesEnabled(true);
}
- TOCItem( KListViewItem *parent, TOCItem *after, const TQDomElement & e )
- : KListViewItem( parent, after, e.tagName() ), m_element( e )
+ TOCItem( KListViewItem *tqparent, TOCItem *after, const TQDomElement & e )
+ : KListViewItem( tqparent, after, e.tagName() ), m_element( e )
{
#ifdef TOC_ENABLE_PAGE_COLUMN
if ( e.hasAttribute( "Page" ) )
@@ -54,7 +54,7 @@ class TOCItem : public KListViewItem
TQDomElement m_element;
};
-TOC::TOC(TQWidget *parent, KPDFDocument *document) : KListView(parent), m_document(document)
+TOC::TOC(TQWidget *tqparent, KPDFDocument *document) : KListView(tqparent), m_document(document)
{
addColumn( i18n("Topic") );
#ifdef TOC_ENABLE_PAGE_COLUMN
@@ -104,21 +104,21 @@ void TOC::notifySetup( const TQValueVector< KPDFPage * > & /*pages*/, bool docum
emit hasTOC( true );
}
-void TOC::addChildren( const TQDomNode & parentNode, KListViewItem * parentItem )
+void TOC::addChildren( const TQDomNode & tqparentNode, KListViewItem * tqparentItem )
{
// keep track of the current listViewItem
TOCItem * currentItem = 0;
- TQDomNode n = parentNode.firstChild();
+ TQDomNode n = tqparentNode.firstChild();
while( !n.isNull() )
{
// convert the node to an element (sure it is)
TQDomElement e = n.toElement();
- // insert the entry as top level (listview parented) or 2nd+ level
- if ( !parentItem )
+ // insert the entry as top level (listview tqparented) or 2nd+ level
+ if ( !tqparentItem )
currentItem = new TOCItem( this, currentItem, e );
else
- currentItem = new TOCItem( parentItem, currentItem, e );
+ currentItem = new TOCItem( tqparentItem, currentItem, e );
// descend recursively and advance to the next node
if ( e.hasChildNodes() )