summaryrefslogtreecommitdiffstats
path: root/doc/html/simple-application.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:44:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-06 13:52:29 +0900
commite6077c30d14e9d662e8843c554db86c0d366d0b6 (patch)
tree672319afee32f0316bad258c0e9a1e0dd737bd61 /doc/html/simple-application.html
parent8c029298d9d3f1f84b65ac4a3a16cd1fa28d9cde (diff)
downloadtqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.tar.gz
tqt3-e6077c30d14e9d662e8843c554db86c0d366d0b6.zip
Rename str nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/simple-application.html')
-rw-r--r--doc/html/simple-application.html20
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> &amp;fileName );
+ void load( const <a href="tqstring.html">TQString</a> &amp;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>()-&gt;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> &amp;fileName )
+<p> <pre> void 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> ) )
@@ -401,7 +401,7 @@ readable, nothing happens.
return;
}
- <a href="ntqstring.html">TQString</a> text = e-&gt;<a href="ntqtextedit.html#text">text</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),
@@ -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>( &amp;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 &gt;= richText.<a href="ntqsimplerichtext.html#height">height</a>() )
break;