diff options
Diffstat (limited to 'doc/html/menu-example.html')
-rw-r--r-- | doc/html/menu-example.html | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html index 139306dc6..505140ca6 100644 --- a/doc/html/menu-example.html +++ b/doc/html/menu-example.html @@ -51,16 +51,16 @@ context menu. #ifndef MENU_H #define MENU_H -#include <<a href="qwidget-h.html">ntqwidget.h</a>> +#include <<a href="tqwidget-h.html">tqwidget.h</a>> #include <<a href="qmenubar-h.html">ntqmenubar.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> -class MenuExample : public <a href="ntqwidget.html">TQWidget</a> +class MenuExample : public <a href="tqwidget.html">TQWidget</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: - MenuExample( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); + MenuExample( <a href="tqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); public slots: void open(); @@ -218,8 +218,8 @@ private: }; -<a name="f501"></a>MenuExample::MenuExample( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="ntqwidget.html">TQWidget</a>( parent, name ) +<a name="f501"></a>MenuExample::MenuExample( <a href="tqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="tqwidget.html">TQWidget</a>( parent, name ) { <a href="ntqpixmap.html">TQPixmap</a> p1( p1_xpm ); <a href="ntqpixmap.html">TQPixmap</a> p2( p2_xpm ); @@ -254,17 +254,17 @@ private: <a href="ntqpopupmenu.html">TQPopupMenu</a>* options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options ); options-><a href="ntqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>(); - options-><a href="ntqwidget.html#setCaption">setCaption</a>("Options"); + options-><a href="tqwidget.html#setCaption">setCaption</a>("Options"); options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Normal Font", this, TQ_SLOT(normal()) ); options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); -<a name="x1883"></a> options-><a href="ntqwidget.html#polish">polish</a>(); // adjust system settings -<a name="x1882"></a> <a href="ntqfont.html">TQFont</a> f = options-><a href="ntqwidget.html#font">font</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 ); boldID = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Bold", f ) ); <a name="x1871"></a> options-><a href="ntqmenudata.html#setAccel">setAccel</a>( CTRL+Key_B, boldID ); <a name="x1868"></a> options-><a href="ntqmenudata.html#connectItem">connectItem</a>( boldID, this, TQ_SLOT(bold()) ); - f = <a href="ntqwidget.html#font">font</a>(); + f = <a href="tqwidget.html#font">font</a>(); <a name="x1861"></a> f.<a href="ntqfont.html#setUnderline">setUnderline</a>( TRUE ); underlineID = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( new MyMenuItem( "Underline", f ) ); options-><a href="ntqmenudata.html#setAccel">setAccel</a>( CTRL+Key_U, underlineID ); @@ -296,12 +296,12 @@ private: msg-><a href="ntqlabel.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="ntqwidget.html#setGeometry">setGeometry</a>( 0, height() - 60, width(), 60 ); +<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 ); label = new <a href="ntqlabel.html">TQLabel</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( label ); - label-><a href="ntqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 ); + 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 ); @@ -309,12 +309,12 @@ private: <a href="tqobject.html#connect">connect</a>( this, TQ_SIGNAL(explain(const <a href="ntqstring.html">TQString</a>&)), label, TQ_SLOT(<a href="ntqlabel.html#setText">setText</a>(const <a href="ntqstring.html">TQString</a>&)) ); - <a href="ntqwidget.html#setMinimumSize">setMinimumSize</a>( 100, 80 ); - <a href="ntqwidget.html#setFocusPolicy">setFocusPolicy</a>( TQWidget::ClickFocus ); + <a href="tqwidget.html#setMinimumSize">setMinimumSize</a>( 100, 80 ); + <a href="tqwidget.html#setFocusPolicy">setFocusPolicy</a>( TQWidget::ClickFocus ); } -<a name="x1881"></a>void MenuExample::<a href="ntqwidget.html#contextMenuEvent">contextMenuEvent</a>( <a href="qcontextmenuevent.html">TQContextMenuEvent</a> * ) +<a name="x1881"></a>void MenuExample::<a href="tqwidget.html#contextMenuEvent">contextMenuEvent</a>( <a href="qcontextmenuevent.html">TQContextMenuEvent</a> * ) { <a href="ntqpopupmenu.html">TQPopupMenu</a>* contextMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( contextMenu ); @@ -443,9 +443,9 @@ void <a name="f516"></a>MenuExample::printerSetup() } -<a name="x1884"></a>void MenuExample::<a href="ntqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * ) +<a name="x1884"></a>void MenuExample::<a href="tqwidget.html#resizeEvent">resizeEvent</a>( <a href="qresizeevent.html">TQResizeEvent</a> * ) { - label-><a href="ntqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 ); + label-><a href="tqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 ); } @@ -453,9 +453,9 @@ int main( int argc, char ** argv ) { <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); MenuExample m; - m.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Examples - Menus"); + m.<a href="tqwidget.html#setCaption">setCaption</a>("TQt Examples - Menus"); a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &m ); - m.<a href="ntqwidget.html#show">show</a>(); + m.<a href="tqwidget.html#show">show</a>(); return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |