From 359640943bcf155faa9a067dde9e00a123276290 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 13 Feb 2012 17:43:39 -0600 Subject: Automated update from Qt3 --- doc/html/menu-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/menu-example.html') diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html index b611166cd..6b17e6b47 100644 --- a/doc/html/menu-example.html +++ b/doc/html/menu-example.html @@ -58,7 +58,7 @@ context menu. class MenuExample : public TQWidget { - Q_OBJECT + TQ_OBJECT public: MenuExample( TQWidget *parent=0, const char *name=0 ); @@ -225,7 +225,7 @@ private: TQPixmap p2( p2_xpm ); TQPixmap p3( p3_xpm ); TQPopupMenu *print = new TQPopupMenu( this ); - Q_CHECK_PTR( print ); + TQ_CHECK_PTR( print ); print->insertTearOffHandle(); print->insertItem( "&Print to printer", this, SLOT(printer()) ); print->insertItem( "Print to &file", this, SLOT(file()) ); @@ -234,7 +234,7 @@ private: print->insertItem( "Printer &Setup", this, SLOT(printerSetup()) ); TQPopupMenu *file = new TQPopupMenu( this ); - Q_CHECK_PTR( file ); + TQ_CHECK_PTR( file ); file->insertItem( p1, "&Open", this, SLOT(open()), CTRL+Key_O ); file->insertItem( p2, "&New", this, SLOT(news()), CTRL+Key_N ); file->insertItem( p3, "&Save", this, SLOT(save()), CTRL+Key_S ); @@ -245,14 +245,14 @@ private: file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q ); TQPopupMenu *edit = new TQPopupMenu( this ); - Q_CHECK_PTR( edit ); + TQ_CHECK_PTR( edit ); int undoID = edit->insertItem( "&Undo", this, SLOT(undo()) ); int redoID = edit->insertItem( "&Redo", this, SLOT(redo()) ); edit->setItemEnabled( undoID, FALSE ); edit->setItemEnabled( redoID, FALSE ); TQPopupMenu* options = new TQPopupMenu( this ); - Q_CHECK_PTR( options ); + TQ_CHECK_PTR( options ); options->insertTearOffHandle(); options->setCaption("Options"); options->insertItem( "&Normal Font", this, SLOT(normal()) ); @@ -276,13 +276,13 @@ private: TQPopupMenu *help = new TQPopupMenu( this ); - Q_CHECK_PTR( help ); + TQ_CHECK_PTR( help ); help->insertItem( "&About", this, SLOT(about()), CTRL+Key_H ); help->insertItem( "About &TQt", this, SLOT(aboutTQt()) ); // If we used a TQMainWindow we could use its built-in menuBar(). menu = new TQMenuBar( this ); - Q_CHECK_PTR( menu ); + TQ_CHECK_PTR( menu ); menu->insertItem( "&File", file ); menu->insertItem( "&Edit", edit ); menu->insertItem( "&Options", options ); @@ -292,7 +292,7 @@ private: TQLabel *msg = new TQLabel( this ); - Q_CHECK_PTR( msg ); + TQ_CHECK_PTR( msg ); msg->setText( "A context menu is available.\n" "Invoke it by right-clicking or by" " pressing the 'context' button." ); @@ -300,7 +300,7 @@ private: msg->setAlignment( AlignCenter ); label = new TQLabel( this ); - Q_CHECK_PTR( label ); + TQ_CHECK_PTR( label ); label->setGeometry( 20, rect().center().y()-20, width()-40, 40 ); label->setFrameStyle( TQFrame::Box | TQFrame::Raised ); label->setLineWidth( 1 ); @@ -317,7 +317,7 @@ private: void MenuExample::contextMenuEvent( TQContextMenuEvent * ) { TQPopupMenu* contextMenu = new TQPopupMenu( this ); - Q_CHECK_PTR( contextMenu ); + TQ_CHECK_PTR( contextMenu ); TQLabel *caption = new TQLabel( "<font color=darkblue><u><b>" "Context Menu</b></u></font>", this ); caption->setAlignment( TQt::AlignCenter ); @@ -326,7 +326,7 @@ private: contextMenu->insertItem( "&Open...", this, SLOT(open()), CTRL+Key_O ); contextMenu->insertItem( "&Save", this, SLOT(save()), CTRL+Key_S ); TQPopupMenu *submenu = new TQPopupMenu( this ); - Q_CHECK_PTR( submenu ); + TQ_CHECK_PTR( submenu ); submenu->insertItem( "&Print to printer", this, SLOT(printer()) ); submenu->insertItem( "Print to &file", this, SLOT(file()) ); submenu->insertItem( "Print to fa&x", this, SLOT(fax()) ); -- cgit v1.2.3