diff options
Diffstat (limited to 'doc/html/outliner-example.html')
-rw-r--r-- | doc/html/outliner-example.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/outliner-example.html b/doc/html/outliner-example.html index 93f84e87..b1ce465b 100644 --- a/doc/html/outliner-example.html +++ b/doc/html/outliner-example.html @@ -112,10 +112,10 @@ traverse it. #ifndef OUTLINETREE_H #define OUTLINETREE_H -#include <<a href="qlistview-h.html">ntqlistview.h</a>> +#include <<a href="tqlistview-h.html">tqlistview.h</a>> #include <<a href="tqdom-h.html">tqdom.h</a>> -class OutlineTree : public <a href="ntqlistview.html">TQListView</a> +class OutlineTree : public <a href="tqlistview.html">TQListView</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> @@ -126,7 +126,7 @@ public: private: <a href="tqdomdocument.html">TQDomDocument</a> domTree; void getHeaderInformation( const <a href="tqdomelement.html">TQDomElement</a> &header ); - void buildTree( <a href="qlistviewitem.html">TQListViewItem</a> *parentItem, const <a href="tqdomelement.html">TQDomElement</a> &parentElement ); + void buildTree( <a href="tqlistviewitem.html">TQListViewItem</a> *parentItem, const <a href="tqdomelement.html">TQDomElement</a> &parentElement ); }; #endif // OUTLINETREE_H @@ -149,12 +149,12 @@ private: #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> <a name="f522"></a>OutlineTree::OutlineTree( const <a href="tqstring.html">TQString</a> fileName, TQWidget *parent, const char *name ) - : <a href="ntqlistview.html">TQListView</a>( parent, name ) + : <a href="tqlistview.html">TQListView</a>( parent, name ) { // div. configuration of the list view - <a href="ntqlistview.html#addColumn">addColumn</a>( "Outlines" ); - <a href="ntqlistview.html#setSorting">setSorting</a>( -1 ); - <a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); + <a href="tqlistview.html#addColumn">addColumn</a>( "Outlines" ); + <a href="tqlistview.html#setSorting">setSorting</a>( -1 ); + <a href="tqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); // read the XML file and create DOM tree <a href="tqfile.html">TQFile</a> opmlFile( fileName ); @@ -212,7 +212,7 @@ void <a name="f523"></a>OutlineTree::getHeaderInformation( const <a href="tqdome if ( node.<a href="tqdomnode.html#nodeName">nodeName</a>() == "title" ) { <a href="tqdomtext.html">TQDomText</a> textChild = node.<a href="tqdomnode.html#firstChild">firstChild</a>().toText(); if ( !textChild.<a href="tqdomnode.html#isNull">isNull</a>() ) { -<a name="x1912"></a> <a href="ntqlistview.html#setColumnText">setColumnText</a>( 0, textChild.<a href="tqdomnode.html#nodeValue">nodeValue</a>() ); +<a name="x1912"></a> <a href="tqlistview.html#setColumnText">setColumnText</a>( 0, textChild.<a href="tqdomnode.html#nodeValue">nodeValue</a>() ); } } } @@ -220,18 +220,18 @@ void <a name="f523"></a>OutlineTree::getHeaderInformation( const <a href="tqdome } } -void <a name="f524"></a>OutlineTree::buildTree( <a href="qlistviewitem.html">TQListViewItem</a> *parentItem, const <a href="tqdomelement.html">TQDomElement</a> &parentElement ) +void <a name="f524"></a>OutlineTree::buildTree( <a href="tqlistviewitem.html">TQListViewItem</a> *parentItem, const <a href="tqdomelement.html">TQDomElement</a> &parentElement ) { - <a href="qlistviewitem.html">TQListViewItem</a> *thisItem = 0; + <a href="tqlistviewitem.html">TQListViewItem</a> *thisItem = 0; <a href="tqdomnode.html">TQDomNode</a> node = parentElement.<a href="tqdomnode.html#firstChild">firstChild</a>(); while ( !node.<a href="tqdomnode.html#isNull">isNull</a>() ) { if ( node.<a href="tqdomnode.html#isElement">isElement</a>() && node.<a href="tqdomnode.html#nodeName">nodeName</a>() == "outline" ) { // add a new list view item for the outline if ( parentItem == 0 ) - thisItem = new <a href="qlistviewitem.html">TQListViewItem</a>( this, thisItem ); + thisItem = new <a href="tqlistviewitem.html">TQListViewItem</a>( this, thisItem ); else - thisItem = new <a href="qlistviewitem.html">TQListViewItem</a>( parentItem, thisItem ); -<a name="x1916"></a> thisItem-><a href="qlistviewitem.html#setText">setText</a>( 0, node.<a href="tqdomnode.html#toElement">toElement</a>().attribute( "text" ) ); + thisItem = new <a href="tqlistviewitem.html">TQListViewItem</a>( parentItem, thisItem ); +<a name="x1916"></a> thisItem-><a href="tqlistviewitem.html#setText">setText</a>( 0, node.<a href="tqdomnode.html#toElement">toElement</a>().attribute( "text" ) ); // recursive build of the tree buildTree( thisItem, node.<a href="tqdomnode.html#toElement">toElement</a>() ); } |