diff options
Diffstat (limited to 'doc/html/menu-example.html')
-rw-r--r-- | doc/html/menu-example.html | 26 |
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 <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> -#include <<a href="qlabel-h.html">ntqlabel.h</a>> +#include <<a href="tqlabel-h.html">tqlabel.h</a>> 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-><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-><a href="ntqlabel.html#setText">setText</a>( "A context menu is available.\n" + msg-><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-><a href="tqwidget.html#setGeometry">setGeometry</a>( 0, height() - 60, width(), 60 ); -<a name="x1864"></a> msg-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); +<a name="x1864"></a> msg-><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-><a href="tqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 ); label-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised ); <a name="x1863"></a> label-><a href="ntqframe.html#setLineWidth">setLineWidth</a>( 1 ); - label-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); + label-><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>&)), - label, TQ_SLOT(<a href="ntqlabel.html#setText">setText</a>(const <a href="tqstring.html">TQString</a>&)) ); + label, TQ_SLOT(<a href="tqlabel.html#setText">setText</a>(const <a href="tqstring.html">TQString</a>&)) ); <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>( "<font color=darkblue><u><b>" + <a href="tqlabel.html">TQLabel</a> *caption = new <a href="tqlabel.html">TQLabel</a>( "<font color=darkblue><u><b>" "Context Menu</b></u></font>", this ); - caption-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter ); + caption-><a href="tqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter ); contextMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( caption ); contextMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&New", this, TQ_SLOT(news()), CTRL+Key_N ); contextMenu-><a href="tqmenudata.html#insertItem">insertItem</a>( "&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-><a href="ntqlabel.html#setFont">setFont</a>( font ); +<a name="x1865"></a> label-><a href="tqlabel.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 ); 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-><a href="ntqlabel.html#setFont">setFont</a>( font ); + label-><a href="tqlabel.html#setFont">setFont</a>( font ); menu-><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-><a href="ntqlabel.html#setFont">setFont</a>( font ); + label-><a href="tqlabel.html#setFont">setFont</a>( font ); menu-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( underlineID, isUnderline ); emit explain( "Options/Underline selected" ); } |