diff options
Diffstat (limited to 'doc/html/outliner-example.html')
-rw-r--r-- | doc/html/outliner-example.html | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/outliner-example.html b/doc/html/outliner-example.html index f289fc639..38fe21f56 100644 --- a/doc/html/outliner-example.html +++ b/doc/html/outliner-example.html @@ -71,8 +71,8 @@ traverse it. <outline text="Dalheimer: Programming with TQt"/> <outline text="Griffith: KDE 2/TQt Programming Bible"/> <outline text="Hughes: Linux Rapid Application Development"/> - <outline text="Solin: <a href="qt.html">TQt</a> Programming in 24 hours"/> - <outline text="Ward: <a href="qt.html">TQt</a> 2 Programming for Linux and Windows 2000"/> + <outline text="Solin: <a href="ntqt.html">TQt</a> Programming in 24 hours"/> + <outline text="Ward: <a href="ntqt.html">TQt</a> 2 Programming for Linux and Windows 2000"/> </outline> </outline> <outline text="Shopping list"> @@ -112,15 +112,15 @@ traverse it. #ifndef OUTLINETREE_H #define OUTLINETREE_H -#include <<a href="qlistview-h.html">qlistview.h</a>> -#include <<a href="qdom-h.html">qdom.h</a>> +#include <<a href="qlistview-h.html">ntqlistview.h</a>> +#include <<a href="qdom-h.html">ntqdom.h</a>> -class OutlineTree : public <a href="qlistview.html">TQListView</a> +class OutlineTree : public <a href="ntqlistview.html">TQListView</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: - OutlineTree( const <a href="qstring.html">TQString</a> fileName, TQWidget *parent = 0, const char *name = 0 ); + OutlineTree( const <a href="ntqstring.html">TQString</a> fileName, TQWidget *parent = 0, const char *name = 0 ); ~OutlineTree(); private: @@ -145,33 +145,33 @@ private: *****************************************************************************/ #include "outlinetree.h" -#include <<a href="qfile-h.html">qfile.h</a>> -#include <<a href="qmessagebox-h.html">qmessagebox.h</a>> +#include <<a href="qfile-h.html">ntqfile.h</a>> +#include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> -<a name="f522"></a>OutlineTree::OutlineTree( const <a href="qstring.html">TQString</a> fileName, TQWidget *parent, const char *name ) - : <a href="qlistview.html">TQListView</a>( parent, name ) +<a name="f522"></a>OutlineTree::OutlineTree( const <a href="ntqstring.html">TQString</a> fileName, TQWidget *parent, const char *name ) + : <a href="ntqlistview.html">TQListView</a>( parent, name ) { // div. configuration of the list view - <a href="qlistview.html#addColumn">addColumn</a>( "Outlines" ); - <a href="qlistview.html#setSorting">setSorting</a>( -1 ); - <a href="qlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); + <a href="ntqlistview.html#addColumn">addColumn</a>( "Outlines" ); + <a href="ntqlistview.html#setSorting">setSorting</a>( -1 ); + <a href="ntqlistview.html#setRootIsDecorated">setRootIsDecorated</a>( TRUE ); // read the XML file and create DOM tree - <a href="qfile.html">TQFile</a> opmlFile( fileName ); -<a name="x1915"></a> if ( !opmlFile.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_ReadOnly</a> ) ) { -<a name="x1917"></a> TQMessageBox::<a href="qmessagebox.html#critical">critical</a>( 0, - <a href="qobject.html#tr">tr</a>( "Critical Error" ), - <a href="qobject.html#tr">tr</a>( "Cannot open file %1" ).arg( fileName ) ); + <a href="ntqfile.html">TQFile</a> opmlFile( fileName ); +<a name="x1915"></a> if ( !opmlFile.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) ) { +<a name="x1917"></a> TQMessageBox::<a href="ntqmessagebox.html#critical">critical</a>( 0, + <a href="ntqobject.html#tr">tr</a>( "Critical Error" ), + <a href="ntqobject.html#tr">tr</a>( "Cannot open file %1" ).arg( fileName ) ); return; } if ( !domTree.setContent( &opmlFile ) ) { - TQMessageBox::<a href="qmessagebox.html#critical">critical</a>( 0, - <a href="qobject.html#tr">tr</a>( "Critical Error" ), - <a href="qobject.html#tr">tr</a>( "Parsing error for file %1" ).arg( fileName ) ); -<a name="x1914"></a> opmlFile.<a href="qfile.html#close">close</a>(); + TQMessageBox::<a href="ntqmessagebox.html#critical">critical</a>( 0, + <a href="ntqobject.html#tr">tr</a>( "Critical Error" ), + <a href="ntqobject.html#tr">tr</a>( "Parsing error for file %1" ).arg( fileName ) ); +<a name="x1914"></a> opmlFile.<a href="ntqfile.html#close">close</a>(); return; } - opmlFile.<a href="qfile.html#close">close</a>(); + opmlFile.<a href="ntqfile.html#close">close</a>(); // get the header information from the DOM <a href="qdomelement.html">TQDomElement</a> root = domTree.documentElement(); @@ -212,7 +212,7 @@ void <a name="f523"></a>OutlineTree::getHeaderInformation( const <a href="qdomel if ( node.<a href="qdomnode.html#nodeName">nodeName</a>() == "title" ) { <a href="qdomtext.html">TQDomText</a> textChild = node.<a href="qdomnode.html#firstChild">firstChild</a>().toText(); if ( !textChild.<a href="qdomnode.html#isNull">isNull</a>() ) { -<a name="x1912"></a> <a href="qlistview.html#setColumnText">setColumnText</a>( 0, textChild.<a href="qdomnode.html#nodeValue">nodeValue</a>() ); +<a name="x1912"></a> <a href="ntqlistview.html#setColumnText">setColumnText</a>( 0, textChild.<a href="qdomnode.html#nodeValue">nodeValue</a>() ); } } } @@ -252,18 +252,18 @@ void <a name="f524"></a>OutlineTree::buildTree( <a href="qlistviewitem.html">TQL ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> #include "outlinetree.h" int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); OutlineTree outline( "todos.opml" ); - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &outline ); -<a name="x1920"></a> outline.<a href="qwidget.html#show">show</a>(); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &outline ); +<a name="x1920"></a> outline.<a href="ntqwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |