diff options
Diffstat (limited to 'doc/html/simple-application.html')
-rw-r--r-- | doc/html/simple-application.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index 84a590eaf..f6350d392 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -73,7 +73,7 @@ protected: private slots: void newDoc(); void choose(); - void load( const <a href="ntqstring.html">TQString</a> &fileName ); + void load( const <a href="tqstring.html">TQString</a> &fileName ); void save(); void saveAs(); void print(); @@ -84,7 +84,7 @@ private slots: private: <a href="ntqprinter.html">TQPrinter</a> *printer; <a href="ntqtextedit.html">TQTextEdit</a> *e; - <a href="ntqstring.html">TQString</a> filename; + <a href="tqstring.html">TQString</a> filename; }; @@ -196,7 +196,7 @@ its location and floats it over the desktop, the toolbar-window will show "File Operations" as caption. <p> <pre> openIcon = TQPixmap( fileopen ); TQToolButton * fileOpen - = new <a href="ntqtoolbutton.html">TQToolButton</a>( openIcon, "Open File", <a href="ntqstring.html#TQString-null">TQString::null</a>, + = new <a href="ntqtoolbutton.html">TQToolButton</a>( openIcon, "Open File", <a href="tqstring.html#TQString-null">TQString::null</a>, this, TQ_SLOT(choose()), fileTools, "open file" ); </pre> <p> Now we create the first tool button for the <em>fileTools</em> toolbar @@ -364,9 +364,9 @@ new <em>ApplicationWindow</em> and shows it. <p> <a name="choose()"></a> <pre> void ApplicationWindow::choose() { - <a href="ntqstring.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="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( TQString::null, TQString::null, this); - if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) load( fn ); else <a href="ntqmainwindow.html#statusBar">statusBar</a>()->message( "Loading aborted", 2000 ); @@ -376,7 +376,7 @@ new <em>ApplicationWindow</em> and shows it. tool button. With a little help from <a href="ntqfiledialog.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="ntqstring.html">TQString</a> &fileName ) +<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> ) ) @@ -401,7 +401,7 @@ readable, nothing happens. return; } - <a href="ntqstring.html">TQString</a> text = e-><a href="ntqtextedit.html#text">text</a>(); + <a href="tqstring.html">TQString</a> text = e-><a href="ntqtextedit.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="ntqmainwindow.html#statusBar">statusBar</a>()->message( TQString("Could not write to %1").arg(filename), @@ -435,9 +435,9 @@ was saved successfully. <p> <a name="saveAs()"></a> <pre> void ApplicationWindow::saveAs() { - <a href="ntqstring.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="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null, this ); - if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) { + if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) { filename = fn; save(); } else { @@ -475,7 +475,7 @@ and implicitly changes the window system caption to the new name. richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &p, margin, margin, view, colorGroup() ); view.<a href="ntqrect.html#moveBy">moveBy</a>( 0, view.<a href="ntqrect.html#height">height</a>() ); p.<a href="ntqpainter.html#translate">translate</a>( 0 , -view.<a href="ntqrect.html#height">height</a>() ); - p.<a href="ntqpainter.html#drawText">drawText</a>( view.<a href="ntqrect.html#right">right</a>() - p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="ntqstring.html#number">number</a>( page ) ), + p.<a href="ntqpainter.html#drawText">drawText</a>( view.<a href="ntqrect.html#right">right</a>() - p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="tqstring.html#number">number</a>( page ) ), view.<a href="ntqrect.html#bottom">bottom</a>() + p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number( page ) ); if ( view.<a href="ntqrect.html#top">top</a>() - margin >= richText.<a href="ntqsimplerichtext.html#height">height</a>() ) break; |