summaryrefslogtreecommitdiffstats
path: root/doc/html/qaction-application-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qaction-application-example.html')
-rw-r--r--doc/html/qaction-application-example.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/qaction-application-example.html b/doc/html/qaction-application-example.html
index 7ac09322f..5b441bf46 100644
--- a/doc/html/qaction-application-example.html
+++ b/doc/html/qaction-application-example.html
@@ -72,7 +72,7 @@ protected:
private slots:
void newDoc();
void choose();
- void load( const <a href="ntqstring.html">TQString</a> &amp;fileName );
+ void load( const <a href="tqstring.html">TQString</a> &amp;fileName );
void save();
void saveAs();
void print();
@@ -83,7 +83,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;
};
@@ -256,16 +256,16 @@ void <a name="f376"></a>ApplicationWindow::newDoc()
void <a name="f377"></a>ApplicationWindow::choose()
{
-<a name="x1132"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="ntqstring.html#TQString-null">TQString::null</a>, TQString::null,
+<a name="x1132"></a> <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, 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>()-&gt;message( "Loading aborted", 2000 );
}
-void <a name="f378"></a>ApplicationWindow::load( const <a href="ntqstring.html">TQString</a> &amp;fileName )
+void <a name="f378"></a>ApplicationWindow::load( const <a href="tqstring.html">TQString</a> &amp;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> ) )
@@ -286,7 +286,7 @@ void <a name="f379"></a>ApplicationWindow::save()
return;
}
-<a name="x1170"></a> <a href="ntqstring.html">TQString</a> text = e-&gt;<a href="ntqtextedit.html#text">text</a>();
+<a name="x1170"></a> <a href="tqstring.html">TQString</a> text = e-&gt;<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>()-&gt;message( TQString("Could not write to %1").arg(filename),
@@ -308,9 +308,9 @@ void <a name="f379"></a>ApplicationWindow::save()
void <a name="f380"></a>ApplicationWindow::saveAs()
{
-<a name="x1133"></a> <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( TQString::null, TQString::null,
+<a name="x1133"></a> <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 {
@@ -346,7 +346,7 @@ void <a name="f381"></a>ApplicationWindow::print()
<a name="x1158"></a> richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &amp;p, margin, margin, view, colorGroup() );
<a name="x1154"></a> view.<a href="ntqrect.html#moveBy">moveBy</a>( 0, view.<a href="ntqrect.html#height">height</a>() );
<a name="x1148"></a> p.<a href="ntqpainter.html#translate">translate</a>( 0 , -view.<a href="ntqrect.html#height">height</a>() );
-<a name="x1155"></a><a name="x1147"></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 ) ),
+<a name="x1155"></a><a name="x1147"></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="tqstring.html#number">number</a>( page ) ),
<a name="x1152"></a> view.<a href="ntqrect.html#bottom">bottom</a>() + p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number( page ) );
<a name="x1159"></a> if ( view.<a href="ntqrect.html#top">top</a>() - margin &gt;= richText.<a href="ntqsimplerichtext.html#height">height</a>() )
break;