summaryrefslogtreecommitdiffstats
path: root/doc/html/menu-example.html
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-15 19:08:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-18 09:31:41 +0900
commita30f5359f03c3017fa19a6770fab32d25d22cb87 (patch)
treecb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/menu-example.html
parent25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff)
downloadtqt3-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.html32
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 &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
/* 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>&amp; s, const <a href="ntqfont.html">TQFont</a>&amp; f )
+ MyMenuItem( const <a href="tqstring.html">TQString</a>&amp; s, const <a href="tqfont.html">TQFont</a>&amp; f )
: string( s ), font( f ){};
~MyMenuItem(){}
- void paint( <a href="ntqpainter.html">TQPainter</a>* p, const TQColorGroup&amp; /*cg*/, bool /*act*/, bool /*enabled*/, int x, int y, int w, int h )
+ void paint( <a href="tqpainter.html">TQPainter</a>* p, const TQColorGroup&amp; /*cg*/, bool /*act*/, bool /*enabled*/, int x, int y, int w, int h )
{
- p-&gt;<a href="ntqpainter.html#setFont">setFont</a> ( font );
- p-&gt;<a href="ntqpainter.html#drawText">drawText</a>( x, y, w, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, string );
+ p-&gt;<a href="tqpainter.html#setFont">setFont</a> ( font );
+ p-&gt;<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-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
<a name="x1883"></a> options-&gt;<a href="tqwidget.html#polish">polish</a>(); // adjust system settings
-<a name="x1882"></a> <a href="ntqfont.html">TQFont</a> f = options-&gt;<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-&gt;<a href="tqwidget.html#font">font</a>();
+<a name="x1860"></a> f.<a href="tqfont.html#setBold">setBold</a>( TRUE );
boldID = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Bold", f ) );
<a name="x1871"></a> options-&gt;<a href="tqmenudata.html#setAccel">setAccel</a>( CTRL+Key_B, boldID );
<a name="x1868"></a> options-&gt;<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-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Underline", f ) );
options-&gt;<a href="tqmenudata.html#setAccel">setAccel</a>( CTRL+Key_U, underlineID );
options-&gt;<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-&gt;<a href="ntqlabel.html#setFont">setFont</a>( font );
<a name="x1872"></a> menu-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( boldID, isBold );
menu-&gt;<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-&gt;<a href="ntqlabel.html#setFont">setFont</a>( font );
menu-&gt;<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-&gt;<a href="ntqlabel.html#setFont">setFont</a>( font );
menu-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( underlineID, isUnderline );
emit explain( "Options/Underline selected" );