diff options
Diffstat (limited to 'doc/html/simple-application.html')
-rw-r--r-- | doc/html/simple-application.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index 4d2f0f5d5..e9f951822 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -364,7 +364,7 @@ new <em>ApplicationWindow</em> and shows it. <p> <a name="choose()"></a> <pre> void ApplicationWindow::choose() { - <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, + <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this); if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) load( fn ); @@ -373,13 +373,13 @@ new <em>ApplicationWindow</em> and shows it. } </pre> <p> The <em>choose()</em> slot is connected to the <em>Open</em> menu item and -tool button. With a little help from <a href="ntqfiledialog.html#getOpenFileName">TQFileDialog::getOpenFileName</a>(), it +tool button. With a little help from <a href="tqfiledialog.html#getOpenFileName">TQFileDialog::getOpenFileName</a>(), it asks the user for a file name and then either loads that file or gives an error message in the statusbar. <p> <pre> void ApplicationWindow::load( const <a href="tqstring.html">TQString</a> &fileName ) { - <a href="ntqfile.html">TQFile</a> f( fileName ); - if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) ) + <a href="tqfile.html">TQFile</a> f( fileName ); + if ( !f.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_ReadOnly</a> ) ) return; <a href="tqtextstream.html">TQTextStream</a> ts( &f ); @@ -402,8 +402,8 @@ readable, nothing happens. } <a href="tqstring.html">TQString</a> text = e-><a href="tqtextedit.html#text">text</a>(); - <a href="ntqfile.html">TQFile</a> f( filename ); - if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> ) ) { + <a href="tqfile.html">TQFile</a> f( filename ); + if ( !f.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_WriteOnly</a> ) ) { <a href="tqmainwindow.html#statusBar">statusBar</a>()->message( TQString("Could not write to %1").arg(filename), 2000 ); return; @@ -411,7 +411,7 @@ readable, nothing happens. <a href="tqtextstream.html">TQTextStream</a> t( &f ); t << text; - f.<a href="ntqfile.html#close">close</a>(); + f.<a href="tqfile.html#close">close</a>(); </pre> <p> As its name suggests, this function saves the current file. If no filename has been specified so far, the <a href="#saveAs()">saveAs()</a> function is called. Unwritable files cause the <em>ApplicationWindow</em> object to provide an error-message in the statusbar. @@ -435,7 +435,7 @@ was saved successfully. <p> <a name="saveAs()"></a> <pre> void ApplicationWindow::saveAs() { - <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, + <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this ); if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) { filename = fn; |