summaryrefslogtreecommitdiffstats
path: root/doc/html/qwerty-example.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/qwerty-example.html
parent68b81013e8668f50fc18b7e26a520ec93a7a1251 (diff)
downloadtqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.tar.gz
tqt3-8ac0e970e4464d9f8f73c0fb34a178ff135be8c3.zip
Rename ntqwidget* related files to equivalent tqwidget*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r--doc/html/qwerty-example.html48
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html
index 5d7cb59b1..a69de6000 100644
--- a/doc/html/qwerty-example.html
+++ b/doc/html/qwerty-example.html
@@ -48,16 +48,16 @@ body { background: #ffffff; color: black; }
#ifndef TQWERTY_H
#define TQWERTY_H
-#include &lt;<a href="qwidget-h.html">ntqwidget.h</a>&gt;
+#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
#include &lt;<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>&gt;
#include &lt;<a href="qprinter-h.html">ntqprinter.h</a>&gt;
-class Editor : public <a href="ntqwidget.html">TQWidget</a>
+class Editor : public <a href="tqwidget.html">TQWidget</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
- Editor( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name="qwerty" );
+ Editor( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name="qwerty" );
~Editor();
void load( const <a href="ntqstring.html">TQString</a>&amp; fileName, int code=-1 );
@@ -129,8 +129,8 @@ static TQPtrList&lt;TQTextCodec&gt; *codecList = 0;
enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
-<a name="f235"></a>Editor::Editor( <a href="ntqwidget.html">TQWidget</a> * parent , const char * name )
- : <a href="ntqwidget.html">TQWidget</a>( parent, name, WDestructiveClose )
+<a name="f235"></a>Editor::Editor( <a href="tqwidget.html">TQWidget</a> * parent , const char * name )
+ : <a href="tqwidget.html">TQWidget</a>( parent, name, WDestructiveClose )
{
m = new <a href="ntqmenubar.html">TQMenuBar</a>( this, "menu" );
@@ -152,7 +152,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Print...", this, TQ_SLOT(print()), ALT+Key_P );
#endif
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>()),ALT+Key_W );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, TQ_SLOT(<a href="tqwidget.html#close">close</a>()),ALT+Key_W );
<a name="x358"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>()), ALT+Key_Q );
<a name="x386"></a> <a href="tqobject.html#connect">connect</a>( save_as, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), this, TQ_SLOT(saveAsEncoding(int)) );
@@ -167,7 +167,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "To &amp;Lowercase", this, TQ_SLOT(toLower()), ALT+Key_L );
#ifndef TQT_NO_FONTDIALOG
edit-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Select Font" , this, TQ_SLOT(<a href="ntqwidget.html#font">font</a>()), ALT+Key_T );
+ edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Select Font" , this, TQ_SLOT(<a href="tqwidget.html#font">font</a>()), ALT+Key_T );
#endif
changed = FALSE;
e = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this, "editor" );
@@ -180,22 +180,22 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
// it change pixel size as the display DPI changes.
//
<a name="x367"></a> <a href="ntqfont.html">TQFont</a> unifont("unifont",16,50); unifont.<a href="ntqfont.html#setPixelSize">setPixelSize</a>(16);
-<a name="x397"></a> e-&gt;<a href="ntqwidget.html#setFont">setFont</a>( unifont );
+<a name="x397"></a> e-&gt;<a href="tqwidget.html#setFont">setFont</a>( unifont );
- e-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
+ e-&gt;<a href="tqwidget.html#setFocus">setFocus</a>();
}
Editor::~Editor()
{
}
-<a name="x405"></a>void Editor::<a href="ntqwidget.html#font">font</a>()
+<a name="x405"></a>void Editor::<a href="tqwidget.html#font">font</a>()
{
#ifndef TQT_NO_FONTDIALOG
bool ok;
<a name="x396"></a><a name="x368"></a> <a href="ntqfont.html">TQFont</a> f = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>( &amp;ok, e-&gt;<a href="ntqtextedit.html#font">font</a>() );
if ( ok ) {
- e-&gt;<a href="ntqwidget.html#setFont">setFont</a>( f );
+ e-&gt;<a href="tqwidget.html#setFont">setFont</a>( f );
}
#endif
}
@@ -233,10 +233,10 @@ void <a name="f237"></a>Editor::newDoc()
Editor *ed = new Editor;
if ( tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().width() &lt; 450
|| tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;size().height() &lt; 450 ) {
-<a name="x413"></a> ed-&gt;<a href="ntqwidget.html#showMaximized">showMaximized</a>();
+<a name="x413"></a> ed-&gt;<a href="tqwidget.html#showMaximized">showMaximized</a>();
} else {
- ed-&gt;<a href="ntqwidget.html#resize">resize</a>( 400, 400 );
- ed-&gt;<a href="ntqwidget.html#show">show</a>();
+ ed-&gt;<a href="tqwidget.html#resize">resize</a>( 400, 400 );
+ ed-&gt;<a href="tqwidget.html#show">show</a>();
}
}
@@ -283,8 +283,8 @@ void Editor::load( const <a href="ntqstring.html">TQString</a>&amp; fileName, in
<a name="x362"></a> f.<a href="ntqfile.html#close">close</a>();
e-&gt;<a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE );
-<a name="x407"></a> e-&gt;<a href="ntqwidget.html#repaint">repaint</a>();
- <a href="ntqwidget.html#setCaption">setCaption</a>( fileName );
+<a name="x407"></a> e-&gt;<a href="tqwidget.html#repaint">repaint</a>();
+ <a href="tqwidget.html#setCaption">setCaption</a>( fileName );
changed = FALSE;
}
@@ -369,7 +369,7 @@ bool <a name="f243"></a>Editor::saveAs( const <a href="ntqstring.html">TQString<
t.<a href="ntqtextstream.html#setEncoding">setEncoding</a>( TQTextStream::Latin1 );
<a name="x399"></a> t &lt;&lt; e-&gt;<a href="ntqtextedit.html#text">text</a>();
f.<a href="ntqfile.html#close">close</a>();
- <a href="ntqwidget.html#setCaption">setCaption</a>( fileName );
+ <a href="tqwidget.html#setCaption">setCaption</a>( fileName );
changed = FALSE;
return TRUE;
}
@@ -406,13 +406,13 @@ void <a name="f244"></a>Editor::print()
#endif
}
-void Editor::<a href="ntqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * )
+void Editor::<a href="tqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * )
{
if ( e &amp;&amp; m )
- e-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( 0, m-&gt;<a href="ntqwidget.html#height">height</a>(), width(), height() - m-&gt;<a href="ntqwidget.html#height">height</a>() );
+ e-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( 0, m-&gt;<a href="tqwidget.html#height">height</a>(), width(), height() - m-&gt;<a href="tqwidget.html#height">height</a>() );
}
-<a name="x404"></a>void Editor::<a href="ntqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a> *event )
+<a name="x404"></a>void Editor::<a href="tqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a> *event )
{
<a name="x360"></a> event-&gt;<a href="qcloseevent.html#accept">accept</a>();
@@ -482,14 +482,14 @@ int main( int argc, char **argv )
int i;
for ( i= argc &lt;= 1 ? 0 : 1; i&lt;argc; i++ ) {
Editor *e = new Editor;
- e-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - TQWERTY");
+ e-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("TQt Example - TQWERTY");
if ( i &gt; 0 )
e-&gt;load( argv[i] );
if ( isSmall ) {
-<a name="x422"></a> e-&gt;<a href="ntqwidget.html#showMaximized">showMaximized</a>();
+<a name="x422"></a> e-&gt;<a href="tqwidget.html#showMaximized">showMaximized</a>();
} else {
- e-&gt;<a href="ntqwidget.html#resize">resize</a>( 400, 400 );
- e-&gt;<a href="ntqwidget.html#show">show</a>();
+ e-&gt;<a href="tqwidget.html#resize">resize</a>( 400, 400 );
+ e-&gt;<a href="tqwidget.html#show">show</a>();
}
}
<a name="x416"></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>()) );