From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/outliner-example.html | 58 +++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'doc/html/outliner-example.html') 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: TQt Programming in 24 hours"/> - <outline text="Ward: TQt 2 Programming for Linux and Windows 2000"/> + <outline text="Solin: TQt Programming in 24 hours"/> + <outline text="Ward: TQt 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 <qlistview.h> -#include <qdom.h> +#include <ntqlistview.h> +#include <ntqdom.h> -class OutlineTree : public TQListView +class OutlineTree : public TQListView { Q_OBJECT public: - OutlineTree( const TQString fileName, TQWidget *parent = 0, const char *name = 0 ); + OutlineTree( const TQString fileName, TQWidget *parent = 0, const char *name = 0 ); ~OutlineTree(); private: @@ -145,33 +145,33 @@ private: *****************************************************************************/ #include "outlinetree.h" -#include <qfile.h> -#include <qmessagebox.h> +#include <ntqfile.h> +#include <ntqmessagebox.h> -OutlineTree::OutlineTree( const TQString fileName, TQWidget *parent, const char *name ) - : TQListView( parent, name ) +OutlineTree::OutlineTree( const TQString fileName, TQWidget *parent, const char *name ) + : TQListView( parent, name ) { // div. configuration of the list view - addColumn( "Outlines" ); - setSorting( -1 ); - setRootIsDecorated( TRUE ); + addColumn( "Outlines" ); + setSorting( -1 ); + setRootIsDecorated( TRUE ); // read the XML file and create DOM tree - TQFile opmlFile( fileName ); - if ( !opmlFile.open( IO_ReadOnly ) ) { - TQMessageBox::critical( 0, - tr( "Critical Error" ), - tr( "Cannot open file %1" ).arg( fileName ) ); + TQFile opmlFile( fileName ); + if ( !opmlFile.open( IO_ReadOnly ) ) { + TQMessageBox::critical( 0, + tr( "Critical Error" ), + tr( "Cannot open file %1" ).arg( fileName ) ); return; } if ( !domTree.setContent( &opmlFile ) ) { - TQMessageBox::critical( 0, - tr( "Critical Error" ), - tr( "Parsing error for file %1" ).arg( fileName ) ); - opmlFile.close(); + TQMessageBox::critical( 0, + tr( "Critical Error" ), + tr( "Parsing error for file %1" ).arg( fileName ) ); + opmlFile.close(); return; } - opmlFile.close(); + opmlFile.close(); // get the header information from the DOM TQDomElement root = domTree.documentElement(); @@ -212,7 +212,7 @@ void OutlineTree::getHeaderInformation( const nodeName() == "title" ) { TQDomText textChild = node.firstChild().toText(); if ( !textChild.isNull() ) { - setColumnText( 0, textChild.nodeValue() ); + setColumnText( 0, textChild.nodeValue() ); } } } @@ -252,18 +252,18 @@ void OutlineTree::buildTree( TQL ** *****************************************************************************/ -#include <qapplication.h> +#include <ntqapplication.h> #include "outlinetree.h" int main( int argc, char **argv ) { - TQApplication a( argc, argv ); + TQApplication a( argc, argv ); OutlineTree outline( "todos.opml" ); - a.setMainWidget( &outline ); - outline.show(); + a.setMainWidget( &outline ); + outline.show(); - return a.exec(); + return a.exec(); } -- cgit v1.2.1