summaryrefslogtreecommitdiffstats
path: root/kpdf/ui/toc.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kpdf/ui/toc.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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() )