diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/menu-example.html | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/menu-example.html')
-rw-r--r-- | doc/html/menu-example.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html index ec62caf59..a0d41e285 100644 --- a/doc/html/menu-example.html +++ b/doc/html/menu-example.html @@ -118,7 +118,7 @@ private: #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> /* XPM */ static const char * p1_xpm[] = { @@ -198,14 +198,14 @@ static const char * p3_xpm[] = { class MyMenuItem : public <a href="qcustommenuitem.html">TQCustomMenuItem</a> { public: - MyMenuItem( const <a href="tqstring.html">TQString</a>& s, const <a href="ntqfont.html">TQFont</a>& f ) + MyMenuItem( const <a href="tqstring.html">TQString</a>& s, const <a href="tqfont.html">TQFont</a>& f ) : string( s ), font( f ){}; ~MyMenuItem(){} - void paint( <a href="ntqpainter.html">TQPainter</a>* p, const TQColorGroup& /*cg*/, bool /*act*/, bool /*enabled*/, int x, int y, int w, int h ) + void paint( <a href="tqpainter.html">TQPainter</a>* p, const TQColorGroup& /*cg*/, bool /*act*/, bool /*enabled*/, int x, int y, int w, int h ) { - p-><a href="ntqpainter.html#setFont">setFont</a> ( font ); - p-><a href="ntqpainter.html#drawText">drawText</a>( x, y, w, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, string ); + p-><a href="tqpainter.html#setFont">setFont</a> ( font ); + p-><a href="tqpainter.html#drawText">drawText</a>( x, y, w, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, string ); } <a href="tqsize.html">TQSize</a> sizeHint() @@ -214,7 +214,7 @@ public: } private: <a href="tqstring.html">TQString</a> string; - <a href="ntqfont.html">TQFont</a> font; + <a href="tqfont.html">TQFont</a> font; }; @@ -259,13 +259,13 @@ private: options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); <a name="x1883"></a> options-><a href="tqwidget.html#polish">polish</a>(); // adjust system settings -<a name="x1882"></a> <a href="ntqfont.html">TQFont</a> f = options-><a href="tqwidget.html#font">font</a>(); -<a name="x1860"></a> f.<a href="ntqfont.html#setBold">setBold</a>( TRUE ); +<a name="x1882"></a> <a href="tqfont.html">TQFont</a> f = options-><a href="tqwidget.html#font">font</a>(); +<a name="x1860"></a> f.<a href="tqfont.html#setBold">setBold</a>( TRUE ); boldID = options-><a href="tqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Bold", f ) ); <a name="x1871"></a> options-><a href="tqmenudata.html#setAccel">setAccel</a>( CTRL+Key_B, boldID ); <a name="x1868"></a> options-><a href="tqmenudata.html#connectItem">connectItem</a>( boldID, this, TQ_SLOT(bold()) ); f = <a href="tqwidget.html#font">font</a>(); -<a name="x1861"></a> f.<a href="ntqfont.html#setUnderline">setUnderline</a>( TRUE ); +<a name="x1861"></a> f.<a href="tqfont.html#setUnderline">setUnderline</a>( TRUE ); underlineID = options-><a href="tqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Underline", f ) ); options-><a href="tqmenudata.html#setAccel">setAccel</a>( CTRL+Key_U, underlineID ); options-><a href="tqmenudata.html#connectItem">connectItem</a>( underlineID, this, TQ_SLOT(underline()) ); @@ -375,7 +375,7 @@ void <a name="f508"></a>MenuExample::normal() { isBold = FALSE; isUnderline = FALSE; - <a href="ntqfont.html">TQFont</a> font; + <a href="tqfont.html">TQFont</a> font; <a name="x1865"></a> label-><a href="ntqlabel.html#setFont">setFont</a>( font ); <a name="x1872"></a> menu-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( boldID, isBold ); menu-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( underlineID, isUnderline ); @@ -386,9 +386,9 @@ void <a name="f508"></a>MenuExample::normal() void <a name="f509"></a>MenuExample::bold() { isBold = !isBold; - <a href="ntqfont.html">TQFont</a> font; - font.<a href="ntqfont.html#setBold">setBold</a>( isBold ); - font.<a href="ntqfont.html#setUnderline">setUnderline</a>( isUnderline ); + <a href="tqfont.html">TQFont</a> font; + font.<a href="tqfont.html#setBold">setBold</a>( isBold ); + font.<a href="tqfont.html#setUnderline">setUnderline</a>( isUnderline ); label-><a href="ntqlabel.html#setFont">setFont</a>( font ); menu-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( boldID, isBold ); emit explain( "Options/Bold selected" ); @@ -398,9 +398,9 @@ void <a name="f509"></a>MenuExample::bold() void <a name="f510"></a>MenuExample::underline() { isUnderline = !isUnderline; - <a href="ntqfont.html">TQFont</a> font; - font.<a href="ntqfont.html#setBold">setBold</a>( isBold ); - font.<a href="ntqfont.html#setUnderline">setUnderline</a>( isUnderline ); + <a href="tqfont.html">TQFont</a> font; + font.<a href="tqfont.html#setBold">setBold</a>( isBold ); + font.<a href="tqfont.html#setUnderline">setUnderline</a>( isUnderline ); label-><a href="ntqlabel.html#setFont">setFont</a>( font ); menu-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( underlineID, isUnderline ); emit explain( "Options/Underline selected" ); |