diff options
Diffstat (limited to 'doc/html/tutorial2-07.html')
-rw-r--r-- | doc/html/tutorial2-07.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/tutorial2-07.html b/doc/html/tutorial2-07.html index b06f0a7b9..540eba29f 100644 --- a/doc/html/tutorial2-07.html +++ b/doc/html/tutorial2-07.html @@ -38,28 +38,28 @@ body { background: #ffffff; color: black; } </h2> <a name="1"></a><p> -<pre> void ChartForm::load( const <a href="qstring.html">TQString</a>& filename ) +<pre> void ChartForm::load( const <a href="ntqstring.html">TQString</a>& filename ) { - <a href="qfile.html">TQFile</a> file( filename ); - if ( !file.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_ReadOnly</a> ) ) { - <a href="qmainwindow.html#statusBar">statusBar</a>()->message( TQString( "Failed to load \'%1\'" ). + <a href="ntqfile.html">TQFile</a> file( filename ); + if ( !file.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) ) { + <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( TQString( "Failed to load \'%1\'" ). arg( filename ), 2000 ); return; } init(); // Make sure we have colours m_filename = filename; - <a href="qtextstream.html">TQTextStream</a> ts( &file ); + <a href="ntqtextstream.html">TQTextStream</a> ts( &file ); Element element; int errors = 0; int i = 0; - <a name="x2592"></a> while ( !ts.<a href="qtextstream.html#eof">eof</a>() ) { + <a name="x2592"></a> while ( !ts.<a href="ntqtextstream.html#eof">eof</a>() ) { ts >> element; if ( element.isValid() ) m_elements[i++] = element; -</pre><pre> <a name="x2590"></a> file.<a href="qfile.html#close">close</a>(); +</pre><pre> <a name="x2590"></a> file.<a href="ntqfile.html#close">close</a>(); </pre> -<p> <pre> <a href="qwidget.html#setCaption">setCaption</a>( TQString( "Chart -- %1" ).arg( filename ) ); +<p> <pre> <a href="ntqwidget.html#setCaption">setCaption</a>( TQString( "Chart -- %1" ).arg( filename ) ); updateRecentFiles( filename ); drawElements(); @@ -75,21 +75,21 @@ draw the chart and mark it as unchanged. </h2> <a name="2"></a><p> <pre> void ChartForm::fileSave() { -</pre><pre> <a href="qfile.html">TQFile</a> file( m_filename ); - <a name="x2591"></a> if ( !file.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_WriteOnly</a> ) ) { - <a href="qmainwindow.html#statusBar">statusBar</a>()->message( TQString( "Failed to save \'%1\'" ). +</pre><pre> <a href="ntqfile.html">TQFile</a> file( m_filename ); + <a name="x2591"></a> if ( !file.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> ) ) { + <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( TQString( "Failed to save \'%1\'" ). arg( m_filename ), 2000 ); return; } - <a href="qtextstream.html">TQTextStream</a> ts( &file ); + <a href="ntqtextstream.html">TQTextStream</a> ts( &file ); for ( int i = 0; i < MAX_ELEMENTS; ++i ) if ( m_elements[i].isValid() ) ts << m_elements[i]; - file.<a href="qfile.html#close">close</a>(); + file.<a href="ntqfile.html#close">close</a>(); - <a href="qwidget.html#setCaption">setCaption</a>( TQString( "Chart -- %1" ).arg( m_filename ) ); - <a href="qmainwindow.html#statusBar">statusBar</a>()->message( TQString( "Saved \'%1\'" ).arg( m_filename ), 2000 ); + <a href="ntqwidget.html#setCaption">setCaption</a>( TQString( "Chart -- %1" ).arg( m_filename ) ); + <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( TQString( "Saved \'%1\'" ).arg( m_filename ), 2000 ); m_changed = FALSE; } </pre> |