summaryrefslogtreecommitdiffstats
path: root/doc/html/simple-application.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:07:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-02 23:22:42 +0900
commit8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 (patch)
treeb95884617b9a37accc843676d5d42be4116a3f54 /doc/html/simple-application.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt-8ac0e970.tar.gz
tqt-8ac0e970.zip
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/simple-application.html')
-rw-r--r--doc/html/simple-application.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html
index 51631c84b..84a590eaf 100644
--- a/doc/html/simple-application.html
+++ b/doc/html/simple-application.html
@@ -116,8 +116,8 @@ includes <tt>application.h</tt> when <a href="qtextedit-h.html">ntqtextedit.h</a
int main( int argc, char ** argv ) {
<a href="ntqapplication.html">TQApplication</a> a( argc, argv );
ApplicationWindow *mw = new ApplicationWindow();
- mw-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Application" );
-<a name="x1598"></a> mw-&gt;<a href="ntqwidget.html#show">show</a>();
+ mw-&gt;<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Application" );
+<a name="x1598"></a> mw-&gt;<a href="tqwidget.html#show">show</a>();
<a name="x1599"></a> a.<a href="tqobject.html#connect">connect</a>( &amp;a, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
return a.<a href="ntqapplication.html#exec">exec</a>();
}
@@ -135,8 +135,8 @@ parse <em>argc</em> and <em>argv</em>. TQApplication itself takes care of X11-sp
command-line options like <em>-geometry</em>, so the program will automatically
behave the way X clients are expected to.
<p> <pre> ApplicationWindow *mw = new ApplicationWindow();
- mw-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Application" );
- <a name="x2115"></a> mw-&gt;<a href="ntqwidget.html#show">show</a>();
+ mw-&gt;<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Application" );
+ <a name="x2115"></a> mw-&gt;<a href="tqwidget.html#show">show</a>();
</pre>
<p> We create an <em>ApplicationWindow</em> as a top-level widget, set its window
system caption to "Document 1", and <em>show()</em> it.
@@ -291,7 +291,7 @@ example for a shorter and easier approach.)
file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, TQ_SLOT(<a href="ntqwidget.html#close">close</a>()), CTRL+Key_W );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()), CTRL+Key_W );
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, TQ_SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
</pre>
<p> ... the <em>Print</em> command with "What's This?" help, another separator and
@@ -299,7 +299,7 @@ two more commands (<em>Close</em> and <em>Quit</em>) without "What's This?" and
In case of the <em>Close</em> command, the signal is connected
to the <em>close()</em> slot of the respective <em>ApplicationWindow</em> object whilst
the <em>Quit</em> command affects the entire application.
-<p> Because <em>ApplicationWindow</em> is a <a href="ntqwidget.html">TQWidget</a>, the <em>close()</em> function
+<p> Because <em>ApplicationWindow</em> is a <a href="tqwidget.html">TQWidget</a>, the <em>close()</em> function
triggers a call to <a href="#closeEvent">closeEvent()</a> which we
will implement later.
<p> <a name="common_constructor"></a>
@@ -320,7 +320,7 @@ will be aligned to the right if the windows system style requires it.
commands. Depending on the style it will appear on the right hand
side of the menu bar or not.
<p> <pre> e = new <a href="ntqtextedit.html">TQTextEdit</a>( this, "editor" );
- e-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
+ e-&gt;<a href="tqwidget.html#setFocus">setFocus</a>();
<a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( e );
</pre>
<p> Now we create a simple text-editor, set the initial focus to it,
@@ -334,7 +334,7 @@ our simple application is a text editor. :)
<p> We make the statusbar say "Ready" for two seconds at startup, just to
tell the user that the window has finished initialization and can be
used.
-<p> <pre> <a href="ntqwidget.html#resize">resize</a>( 450, 600 );
+<p> <pre> <a href="tqwidget.html#resize">resize</a>( 450, 600 );
</pre>
<p> Finally it's time to resize the new window to a a nice default size.
<p> <pre> }
@@ -355,8 +355,8 @@ and used in the constructor.
<pre> void ApplicationWindow::newDoc()
{
ApplicationWindow *ed = new ApplicationWindow;
- ed-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Application");
- ed-&gt;<a href="ntqwidget.html#show">show</a>();
+ ed-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - Application");
+ ed-&gt;<a href="tqwidget.html#show">show</a>();
}
</pre>
<p> This slot, connected to the <em>File|New</em> menu item, simply creates a
@@ -385,7 +385,7 @@ error message in the statusbar.
<a href="ntqtextstream.html">TQTextStream</a> ts( &amp;f );
e-&gt;<a href="ntqtextedit.html#setText">setText</a>( ts.<a href="ntqtextstream.html#read">read</a>() );
e-&gt;<a href="ntqtextedit.html#setModified">setModified</a>( FALSE );
- <a href="ntqwidget.html#setCaption">setCaption</a>( fileName );
+ <a href="tqwidget.html#setCaption">setCaption</a>( fileName );
<a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Loaded document " + fileName, 2000 );
}
</pre>
@@ -423,7 +423,7 @@ code in the <tt>load()</tt> function.
<p> Tell the editor that the contents haven't been edited since the last
save. When the user does some further editing and wishes to close the
window without explicit saving, <a href="#closeEvent">ApplicationWindow::closeEvent()</a> will ask about it.
-<p> <pre> <a href="ntqwidget.html#setCaption">setCaption</a>( filename );
+<p> <pre> <a href="tqwidget.html#setCaption">setCaption</a>( filename );
</pre>
<p> It may be that the document was saved under a different name than the
old caption suggests, so we set the window caption just to be sure.
@@ -500,7 +500,7 @@ TQSimpleRichText page at a time.
<p> Now let's see what happens when a user wishes to <em>close()</em>
an <em>ApplicationWindow</em>.
<p> <a name="closeEvent"></a>
-<pre> void ApplicationWindow::<a href="ntqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a>* ce )
+<pre> void ApplicationWindow::<a href="tqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a>* ce )
{
</pre>
<p> This event gets to process window system close events. A close event is