summaryrefslogtreecommitdiffstats
path: root/doc/html/outliner-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/outliner-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/outliner-example.html')
-rw-r--r--doc/html/outliner-example.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/outliner-example.html b/doc/html/outliner-example.html
index f289fc63..38fe21f5 100644
--- a/doc/html/outliner-example.html
+++ b/doc/html/outliner-example.html
@@ -71,8 +71,8 @@ traverse it.
&lt;outline text="Dalheimer: Programming with TQt"/&gt;
&lt;outline text="Griffith: KDE 2/TQt Programming Bible"/&gt;
&lt;outline text="Hughes: Linux Rapid Application Development"/&gt;
- &lt;outline text="Solin: <a href="qt.html">TQt</a> Programming in 24 hours"/&gt;
- &lt;outline text="Ward: <a href="qt.html">TQt</a> 2 Programming for Linux and Windows 2000"/&gt;
+ &lt;outline text="Solin: <a href="ntqt.html">TQt</a> Programming in 24 hours"/&gt;
+ &lt;outline text="Ward: <a href="ntqt.html">TQt</a> 2 Programming for Linux and Windows 2000"/&gt;
&lt;/outline&gt;
&lt;/outline&gt;
&lt;outline text="Shopping list"&gt;
@@ -112,15 +112,15 @@ traverse it.
#ifndef OUTLINETREE_H
#define OUTLINETREE_H
-#include &lt;<a href="qlistview-h.html">qlistview.h</a>&gt;
-#include &lt;<a href="qdom-h.html">qdom.h</a>&gt;
+#include &lt;<a href="qlistview-h.html">ntqlistview.h</a>&gt;
+#include &lt;<a href="qdom-h.html">ntqdom.h</a>&gt;
-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 &lt;<a href="qfile-h.html">qfile.h</a>&gt;
-#include &lt;<a href="qmessagebox-h.html">qmessagebox.h</a>&gt;
+#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
+#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
-<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( &amp;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 &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#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>( &amp;outline );
-<a name="x1920"></a> outline.<a href="qwidget.html#show">show</a>();
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;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>