diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 |
commit | 42957a3f812a1db64a9ae452baa2d3fbc35f2466 (patch) | |
tree | 0928f4e01a3dcc0698b46c7608d8310e471bdb49 /doc/html/qwerty-example.html | |
parent | fef846914f8db6dc117e206ef913d519bf6bb33e (diff) | |
download | tqt3-42957a3f812a1db64a9ae452baa2d3fbc35f2466.tar.gz tqt3-42957a3f812a1db64a9ae452baa2d3fbc35f2466.zip |
Rename more widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/qwerty-example.html')
-rw-r--r-- | doc/html/qwerty-example.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index b55650d7..1a224551 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -50,7 +50,7 @@ body { background: #ffffff; color: black; } #include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> -#include <<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>> +#include <<a href="tqmultilineedit-h.html">tqmultilineedit.h</a>> #include <<a href="tqprinter-h.html">tqprinter.h</a>> class Editor : public <a href="tqwidget.html">TQWidget</a> @@ -84,7 +84,7 @@ private: bool saveAs( const <a href="tqstring.html">TQString</a>& fileName, int code=-1 ); void rebuildCodecList(); <a href="tqmenubar.html">TQMenuBar</a> *m; - <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *e; + <a href="tqmultilineedit.html">TQMultiLineEdit</a> *e; #ifndef TQT_NO_PRINTER <a href="tqprinter.html">TQPrinter</a> printer; #endif @@ -170,7 +170,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 }; edit-><a href="tqmenudata.html#insertItem">insertItem</a>( "&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" ); + e = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this, "editor" ); <a name="x400"></a> <a href="tqobject.html#connect">connect</a>( e, TQ_SIGNAL( <a href="tqtextedit.html#textChanged">textChanged</a>() ), this, TQ_SLOT( textChanged() ) ); // We use Unifont - if you have it installed you'll see all @@ -256,7 +256,7 @@ void Editor::load( const <a href="tqstring.html">TQString</a>& fileName, int <a name="x363"></a> if ( !f.<a href="tqfile.html#open">open</a>( <a href="tqfile.html#open">IO_ReadOnly</a> ) ) return; -<a name="x376"></a> e-><a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( FALSE ); +<a name="x376"></a> e-><a href="tqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( FALSE ); <a href="tqtextstream.html">TQTextStream</a> t(&f); if ( code >= Codec ) @@ -282,7 +282,7 @@ void Editor::load( const <a href="tqstring.html">TQString</a>& fileName, int <a name="x401"></a><a name="x398"></a> e-><a href="tqtextedit.html#setText">setText</a>( t.<a href="tqtextstream.html#read">read</a>() ); <a name="x362"></a> f.<a href="tqfile.html#close">close</a>(); - e-><a href="ntqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE ); + e-><a href="tqmultilineedit.html#setAutoUpdate">setAutoUpdate</a>( TRUE ); <a name="x407"></a> e-><a href="tqwidget.html#repaint">repaint</a>(); <a href="tqwidget.html#setCaption">setCaption</a>( fileName ); @@ -388,7 +388,7 @@ void <a name="f244"></a>Editor::print() <a name="x379"></a> const int MARGIN = metrics.<a href="tqpaintdevicemetrics.html#logicalDpiX">logicalDpiX</a>() / 2; // half-inch margin int yPos = MARGIN; // y position for each line -<a name="x375"></a> for( int i = 0 ; i < e-><a href="ntqmultilineedit.html#numLines">numLines</a>() ; i++ ) { +<a name="x375"></a> for( int i = 0 ; i < e-><a href="tqmultilineedit.html#numLines">numLines</a>() ; i++ ) { if ( printer.aborted() ) break; <a name="x378"></a><a name="x369"></a> if ( yPos + fm.<a href="tqfontmetrics.html#lineSpacing">lineSpacing</a>() > metrics.<a href="tqpaintdevicemetrics.html#height">height</a>() - MARGIN ) { @@ -398,7 +398,7 @@ void <a name="f244"></a>Editor::print() yPos = MARGIN; // back to top of page } <a name="x380"></a> p.<a href="tqpainter.html#drawText">drawText</a>( MARGIN, yPos, metrics.<a href="tqpaintdevicemetrics.html#width">width</a>() - 2*MARGIN, -<a name="x377"></a> fm.<a href="tqfontmetrics.html#lineSpacing">lineSpacing</a>(), ExpandTabs, e-><a href="ntqmultilineedit.html#textLine">textLine</a>( i ) ); +<a name="x377"></a> fm.<a href="tqfontmetrics.html#lineSpacing">lineSpacing</a>(), ExpandTabs, e-><a href="tqmultilineedit.html#textLine">textLine</a>( i ) ); yPos += fm.<a href="tqfontmetrics.html#lineSpacing">lineSpacing</a>(); } p.<a href="tqpainter.html#end">end</a>(); // send job to printer |