diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:12:51 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:12:51 -0600 |
commit | 65eca7929c22f0f0bc64135c02d85d1243df376c (patch) | |
tree | 5b47361590fb6693a0f6258d6a8d725856ef2ad9 /kpdf/ui/toc.cpp | |
parent | cd6d514066c22206c388eddbb7fbec32648dbaeb (diff) | |
download | tdegraphics-65eca7929c22f0f0bc64135c02d85d1243df376c.tar.gz tdegraphics-65eca7929c22f0f0bc64135c02d85d1243df376c.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kpdf/ui/toc.cpp')
-rw-r--r-- | kpdf/ui/toc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kpdf/ui/toc.cpp b/kpdf/ui/toc.cpp index 015ba313..8e2f9531 100644 --- a/kpdf/ui/toc.cpp +++ b/kpdf/ui/toc.cpp @@ -22,11 +22,11 @@ // they're slow when converted to page number. drop the 2nd column idea. //#define TOC_ENABLE_PAGE_COLUMN -class TOCItem : public KListViewItem +class TOCItem : public TDEListViewItem { public: - TOCItem( KListView *parent, TOCItem *after, const TQDomElement & e ) - : KListViewItem( parent, after, e.tagName() ), m_element( e ) + TOCItem( TDEListView *parent, TOCItem *after, const TQDomElement & e ) + : TDEListViewItem( parent, 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( TDEListViewItem *parent, TOCItem *after, const TQDomElement & e ) + : TDEListViewItem( parent, 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 *parent, KPDFDocument *document) : TDEListView(parent), m_document(document) { addColumn( i18n("Topic") ); #ifdef TOC_ENABLE_PAGE_COLUMN @@ -104,7 +104,7 @@ 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 & parentNode, TDEListViewItem * parentItem ) { // keep track of the current listViewItem TOCItem * currentItem = 0; |