From 8ac0e970e4464d9f8f73c0fb34a178ff135be8c3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 2 Jun 2024 23:07:22 +0900 Subject: Rename ntqwidget* related files to equivalent tqwidget* Signed-off-by: Michele Calgaro --- doc/html/menu-example.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'doc/html/menu-example.html') 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 <ntqwidget.h> +#include <tqwidget.h> #include <ntqmenubar.h> #include <ntqlabel.h> -class MenuExample : public TQWidget +class MenuExample : public TQWidget { TQ_OBJECT public: - MenuExample( TQWidget *parent=0, const char *name=0 ); + MenuExample( TQWidget *parent=0, const char *name=0 ); public slots: void open(); @@ -218,8 +218,8 @@ private: }; -MenuExample::MenuExample( TQWidget *parent, const char *name ) - : TQWidget( parent, name ) +MenuExample::MenuExample( TQWidget *parent, const char *name ) + : TQWidget( parent, name ) { TQPixmap p1( p1_xpm ); TQPixmap p2( p2_xpm ); @@ -254,17 +254,17 @@ private: TQPopupMenu* options = new TQPopupMenu( this ); TQ_CHECK_PTR( options ); options->insertTearOffHandle(); - options->setCaption("Options"); + options->setCaption("Options"); options->insertItem( "&Normal Font", this, TQ_SLOT(normal()) ); options->insertSeparator(); - options->polish(); // adjust system settings - TQFont f = options->font(); + options->polish(); // adjust system settings + TQFont f = options->font(); f.setBold( TRUE ); boldID = options->insertItem( new MyMenuItem( "Bold", f ) ); options->setAccel( CTRL+Key_B, boldID ); options->connectItem( boldID, this, TQ_SLOT(bold()) ); - f = font(); + f = font(); f.setUnderline( TRUE ); underlineID = options->insertItem( new MyMenuItem( "Underline", f ) ); options->setAccel( CTRL+Key_U, underlineID ); @@ -296,12 +296,12 @@ private: msg->setText( "A context menu is available.\n" "Invoke it by right-clicking or by" " pressing the 'context' button." ); - msg->setGeometry( 0, height() - 60, width(), 60 ); + msg->setGeometry( 0, height() - 60, width(), 60 ); msg->setAlignment( AlignCenter ); label = new TQLabel( this ); TQ_CHECK_PTR( label ); - label->setGeometry( 20, rect().center().y()-20, width()-40, 40 ); + label->setGeometry( 20, rect().center().y()-20, width()-40, 40 ); label->setFrameStyle( TQFrame::Box | TQFrame::Raised ); label->setLineWidth( 1 ); label->setAlignment( AlignCenter ); @@ -309,12 +309,12 @@ private: connect( this, TQ_SIGNAL(explain(const TQString&)), label, TQ_SLOT(setText(const TQString&)) ); - setMinimumSize( 100, 80 ); - setFocusPolicy( TQWidget::ClickFocus ); + setMinimumSize( 100, 80 ); + setFocusPolicy( TQWidget::ClickFocus ); } -void MenuExample::contextMenuEvent( TQContextMenuEvent * ) +void MenuExample::contextMenuEvent( TQContextMenuEvent * ) { TQPopupMenu* contextMenu = new TQPopupMenu( this ); TQ_CHECK_PTR( contextMenu ); @@ -443,9 +443,9 @@ void MenuExample::printerSetup() } -void MenuExample::resizeEvent( TQResizeEvent * ) +void MenuExample::resizeEvent( TQResizeEvent * ) { - label->setGeometry( 20, rect().center().y()-20, width()-40, 40 ); + label->setGeometry( 20, rect().center().y()-20, width()-40, 40 ); } @@ -453,9 +453,9 @@ int main( int argc, char ** argv ) { TQApplication a( argc, argv ); MenuExample m; - m.setCaption("TQt Examples - Menus"); + m.setCaption("TQt Examples - Menus"); a.setMainWidget( &m ); - m.show(); + m.show(); return a.exec(); } -- cgit v1.2.3