summaryrefslogtreecommitdiffstats
path: root/doc/html/menu-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/menu-example.html')
-rw-r--r--doc/html/menu-example.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html
index ae09aa360..4be978c14 100644
--- a/doc/html/menu-example.html
+++ b/doc/html/menu-example.html
@@ -53,7 +53,7 @@ context menu.
#include &lt;<a href="tqwidget-h.html">tqwidget.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
class MenuExample : public <a href="tqwidget.html">TQWidget</a>
@@ -90,7 +90,7 @@ private:
<a href="tqmenubar.html">TQMenuBar</a> *menu;
- <a href="ntqlabel.html">TQLabel</a> *label;
+ <a href="tqlabel.html">TQLabel</a> *label;
bool isBold;
bool isUnderline;
int boldID, underlineID;
@@ -291,23 +291,23 @@ private:
<a name="x1867"></a> menu-&gt;<a href="tqmenubar.html#setSeparator">setSeparator</a>( TQMenuBar::InWindowsStyle );
- <a href="ntqlabel.html">TQLabel</a> *msg = new <a href="ntqlabel.html">TQLabel</a>( this );
+ <a href="tqlabel.html">TQLabel</a> *msg = new <a href="tqlabel.html">TQLabel</a>( this );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( msg );
- msg-&gt;<a href="ntqlabel.html#setText">setText</a>( "A context menu is available.\n"
+ msg-&gt;<a href="tqlabel.html#setText">setText</a>( "A context menu is available.\n"
"Invoke it by right-clicking or by"
" pressing the 'context' button." );
<a name="x1886"></a> msg-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( 0, height() - 60, width(), 60 );
-<a name="x1864"></a> msg-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
+<a name="x1864"></a> msg-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
- label = new <a href="ntqlabel.html">TQLabel</a>( this );
+ label = new <a href="tqlabel.html">TQLabel</a>( this );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( label );
label-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 );
label-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised );
<a name="x1863"></a> label-&gt;<a href="ntqframe.html#setLineWidth">setLineWidth</a>( 1 );
- label-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
+ label-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
<a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL(explain(const <a href="tqstring.html">TQString</a>&amp;)),
- label, TQ_SLOT(<a href="ntqlabel.html#setText">setText</a>(const <a href="tqstring.html">TQString</a>&amp;)) );
+ label, TQ_SLOT(<a href="tqlabel.html#setText">setText</a>(const <a href="tqstring.html">TQString</a>&amp;)) );
<a href="tqwidget.html#setMinimumSize">setMinimumSize</a>( 100, 80 );
<a href="tqwidget.html#setFocusPolicy">setFocusPolicy</a>( TQWidget::ClickFocus );
@@ -318,9 +318,9 @@ private:
{
<a href="tqpopupmenu.html">TQPopupMenu</a>* contextMenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( contextMenu );
- <a href="ntqlabel.html">TQLabel</a> *caption = new <a href="ntqlabel.html">TQLabel</a>( "&lt;font color=darkblue&gt;&lt;u&gt;&lt;b&gt;"
+ <a href="tqlabel.html">TQLabel</a> *caption = new <a href="tqlabel.html">TQLabel</a>( "&lt;font color=darkblue&gt;&lt;u&gt;&lt;b&gt;"
"Context Menu&lt;/b&gt;&lt;/u&gt;&lt;/font&gt;", this );
- caption-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter );
+ caption-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter );
contextMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( caption );
contextMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;New", this, TQ_SLOT(news()), CTRL+Key_N );
contextMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, TQ_SLOT(open()), CTRL+Key_O );
@@ -376,7 +376,7 @@ void <a name="f508"></a>MenuExample::normal()
isBold = FALSE;
isUnderline = FALSE;
<a href="tqfont.html">TQFont</a> font;
-<a name="x1865"></a> label-&gt;<a href="ntqlabel.html#setFont">setFont</a>( font );
+<a name="x1865"></a> label-&gt;<a href="tqlabel.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 );
emit explain( "Options/Normal selected" );
@@ -389,7 +389,7 @@ void <a name="f509"></a>MenuExample::bold()
<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 );
+ label-&gt;<a href="tqlabel.html#setFont">setFont</a>( font );
menu-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( boldID, isBold );
emit explain( "Options/Bold selected" );
}
@@ -401,7 +401,7 @@ void <a name="f510"></a>MenuExample::underline()
<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 );
+ label-&gt;<a href="tqlabel.html#setFont">setFont</a>( font );
menu-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( underlineID, isUnderline );
emit explain( "Options/Underline selected" );
}