diff options
Diffstat (limited to 'doc/html/mdi-example.html')
-rw-r--r-- | doc/html/mdi-example.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index f241b345a..ebaef0479 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -142,8 +142,8 @@ private: #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> #include <<a href="qmovie-h.html">ntqmovie.h</a>> -#include <<a href="qfile-h.html">ntqfile.h</a>> -#include <<a href="qfiledialog-h.html">ntqfiledialog.h</a>> +#include <<a href="tqfile-h.html">tqfile.h</a>> +#include <<a href="tqfiledialog-h.html">tqfiledialog.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> #include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> @@ -285,7 +285,7 @@ MDIWindow* <a name="f536"></a>ApplicationWindow::newDoc() void <a name="f537"></a>ApplicationWindow::load() { - <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this ); + <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>() ) { MDIWindow* w = newDoc(); w->load( fn ); @@ -452,8 +452,8 @@ void MDIWindow::<a href="tqwidget.html#closeEvent">closeEvent</a>( <a href="qclo void <a name="f548"></a>MDIWindow::load( const <a href="tqstring.html">TQString</a>& fn ) { filename = fn; - <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 name="x2064"></a> if(fn.<a href="tqstring.html#contains">contains</a>(".gif")) { @@ -472,7 +472,7 @@ void <a name="f548"></a>MDIWindow::load( const <a href="tqstring.html">TQString< <a href="tqtextstream.html">TQTextStream</a> t(&f); <a name="x2074"></a> <a href="tqstring.html">TQString</a> s = t.<a href="tqtextstream.html#read">read</a>(); medit-><a href="tqtextedit.html#setText">setText</a>( s ); -<a name="x2023"></a> f.<a href="ntqfile.html#close">close</a>(); +<a name="x2023"></a> f.<a href="tqfile.html#close">close</a>(); } @@ -488,8 +488,8 @@ void <a name="f549"></a>MDIWindow::save() } <a name="x2073"></a> <a href="tqstring.html">TQString</a> text = medit-><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> ) ) { emit message( TQString("Could not write to %1").arg(filename), 2000 ); return; @@ -497,7 +497,7 @@ void <a name="f549"></a>MDIWindow::save() <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>(); <a href="tqwidget.html#setCaption">setCaption</a>( filename ); @@ -506,7 +506,7 @@ void <a name="f549"></a>MDIWindow::save() void <a name="f550"></a>MDIWindow::saveAs() { - <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( filename, TQString::null, this ); + <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="tqfiledialog.html#getSaveFileName">getSaveFileName</a>( filename, TQString::null, this ); if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) { filename = fn; save(); |