From fb401a891f1b426e9419c0cb16403df407138611 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 27 Dec 2023 19:25:43 +0900 Subject: Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT Signed-off-by: Michele Calgaro --- doc/html/mdi-example.html | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'doc/html/mdi-example.html') diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index 50684724d..40f8b098f 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -188,12 +188,12 @@ const char * filePrintText = "Click this button to print the file you " openIcon = TQPixmap( fileopen ); TQToolButton * fileOpen = new TQToolButton( openIcon, "Open File", TQString::null, - this, SLOT(load()), fileTools, "open file" ); + this, TQ_SLOT(load()), fileTools, "open file" ); saveIcon = TQPixmap( filesave ); TQToolButton * fileSave = new TQToolButton( saveIcon, "Save File", TQString::null, - this, SLOT(save()), fileTools, "save file" ); + this, TQ_SLOT(save()), fileTools, "save file" ); #ifndef TQT_NO_PRINTER printer = new TQPrinter( TQPrinter::HighResolution ); @@ -202,7 +202,7 @@ const char * filePrintText = "Click this button to print the file you " printIcon = TQPixmap( fileprint ); TQToolButton * filePrint = new TQToolButton( printIcon, "Print File", TQString::null, - this, SLOT(print()), fileTools, "print file" ); + this, TQ_SLOT(print()), fileTools, "print file" ); TQWhatsThis::add( filePrint, filePrintText ); #endif @@ -214,41 +214,41 @@ const char * filePrintText = "Click this button to print the file you " TQPopupMenu * file = new TQPopupMenu( this ); menuBar()->insertItem( "&File", file ); - file->insertItem( "&New", this, SLOT(newDoc()), CTRL+Key_N ); + file->insertItem( "&New", this, TQ_SLOT(newDoc()), CTRL+Key_N ); id = file->insertItem( openIcon, "&Open...", - this, SLOT(load()), CTRL+Key_O ); + this, TQ_SLOT(load()), CTRL+Key_O ); file->setWhatsThis( id, fileOpenText ); id = file->insertItem( saveIcon, "&Save", - this, SLOT(save()), CTRL+Key_S ); + this, TQ_SLOT(save()), CTRL+Key_S ); file->setWhatsThis( id, fileSaveText ); - id = file->insertItem( "Save &As...", this, SLOT(saveAs()) ); + id = file->insertItem( "Save &As...", this, TQ_SLOT(saveAs()) ); file->setWhatsThis( id, fileSaveText ); #ifndef TQT_NO_PRINTER file->insertSeparator(); id = file->insertItem( printIcon, "&Print...", - this, SLOT(print()), CTRL+Key_P ); + this, TQ_SLOT(print()), CTRL+Key_P ); file->setWhatsThis( id, filePrintText ); #endif file->insertSeparator(); - file->insertItem( "&Close", this, SLOT(closeWindow()), CTRL+Key_W ); - file->insertItem( "&Quit", tqApp, SLOT( closeAllWindows() ), CTRL+Key_Q ); + file->insertItem( "&Close", this, TQ_SLOT(closeWindow()), CTRL+Key_W ); + file->insertItem( "&Quit", tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q ); windowsMenu = new TQPopupMenu( this ); windowsMenu->setCheckable( TRUE ); - connect( windowsMenu, SIGNAL( aboutToShow() ), - this, SLOT( windowsMenuAboutToShow() ) ); + connect( windowsMenu, TQ_SIGNAL( aboutToShow() ), + this, TQ_SLOT( windowsMenuAboutToShow() ) ); menuBar()->insertItem( "&Windows", windowsMenu ); menuBar()->insertSeparator(); TQPopupMenu * help = new TQPopupMenu( this ); menuBar()->insertItem( "&Help", help ); - help->insertItem( "&About", this, SLOT(about()), Key_F1); - help->insertItem( "About &TQt", this, SLOT(aboutTQt())); + help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1); + help->insertItem( "About &TQt", this, TQ_SLOT(aboutTQt())); help->insertSeparator(); - help->insertItem( "What's &This", this, SLOT(whatsThis()), SHIFT+Key_F1); + help->insertItem( "What's &This", this, TQ_SLOT(whatsThis()), SHIFT+Key_F1); TQVBox* vb = new TQVBox( this ); vb->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken ); @@ -272,7 +272,7 @@ ApplicationWindow::~ApplicationWindow() MDIWindow* ApplicationWindow::newDoc() { MDIWindow* w = new MDIWindow( ws, 0, WDestructiveClose ); - connect( w, SIGNAL( message(const TQString&, int) ), statusBar(), SLOT( message(const TQString&, int )) ); + connect( w, TQ_SIGNAL( message(const TQString&, int) ), statusBar(), TQ_SLOT( message(const TQString&, int )) ); w->setCaption("unnamed document"); w->setIcon( TQPixmap("document.xpm") ); // show the very first window in maximized mode @@ -344,9 +344,9 @@ void ApplicationWindow::aboutTQt() void ApplicationWindow::windowsMenuAboutToShow() { windowsMenu->clear(); - int cascadeId = windowsMenu->insertItem("&Cascade", ws, SLOT(cascade() ) ); - int tileId = windowsMenu->insertItem("&Tile", ws, SLOT(tile() ) ); - int horTileId = windowsMenu->insertItem("Tile &Horizontally", this, SLOT(tileHorizontal() ) ); + int cascadeId = windowsMenu->insertItem("&Cascade", ws, TQ_SLOT(cascade() ) ); + int tileId = windowsMenu->insertItem("&Tile", ws, TQ_SLOT(tile() ) ); + int horTileId = windowsMenu->insertItem("Tile &Horizontally", this, TQ_SLOT(tileHorizontal() ) ); if ( ws->windowList().isEmpty() ) { windowsMenu->setItemEnabled( cascadeId, FALSE ); windowsMenu->setItemEnabled( tileId, FALSE ); @@ -356,7 +356,7 @@ void ApplicationWindow::windowsMenuAboutToShow() TQWidgetList windows = ws->windowList(); for ( int i = 0; i < int(windows.count()); ++i ) { int id = windowsMenu->insertItem(windows.at(i)->caption(), - this, SLOT( windowsMenuActivated( int ) ) ); + this, TQ_SLOT( windowsMenuActivated( int ) ) ); windowsMenu->setItemParameter( id, i ); windowsMenu->setItemChecked( id, ws->activeWindow() == windows.at(i) ); } @@ -582,7 +582,7 @@ int main( int argc, char ** argv ) { a.setMainWidget(mw); mw->setCaption( "TQt Example - Multiple Documents Interface (MDI)" ); mw->show(); - a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); + a.connect( &a, TQ_SIGNAL(lastWindowClosed()), &a, TQ_SLOT(quit()) ); int res = a.exec(); return res; } -- cgit v1.2.1