summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmainwindow.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqmainwindow.3qt')
-rw-r--r--doc/man/man3/tqmainwindow.3qt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/man/man3/tqmainwindow.3qt b/doc/man/man3/tqmainwindow.3qt
index 050367e3..0d5dda86 100644
--- a/doc/man/man3/tqmainwindow.3qt
+++ b/doc/man/man3/tqmainwindow.3qt
@@ -287,7 +287,7 @@ When subclassing we add the menu items and toolbars in the subclass's constructo
menuBar()->insertItem( "&Help", help );
.br
.br
- help->insertItem( "&About", this, SLOT(about()), Key_F1 );
+ help->insertItem( "&About", this, TQ_SLOT(about()), Key_F1 );
.fi
.PP
Here we've added a new menu with one menu item. The menu has been inserted into the menu bar that QMainWindow provides by default and which is accessible through the menuBar() function. The slot will be called when the menu item is clicked.
@@ -305,7 +305,7 @@ Here we've added a new menu with one menu item. The menu has been inserted into
.br
= new QToolButton( openIcon, "Open File", TQString::null,
.br
- this, SLOT(choose()), fileTools, "open file" );
+ this, TQ_SLOT(choose()), fileTools, "open file" );
.fi
.PP
This extract shows the creation of a toolbar with one toolbar button. QMainWindow supplies four dock areas for toolbars. When a toolbar is created as a child of a QMainWindow (or derived class) instance it will be placed in a dock area (the Top dock area by default). The slot will be called when the toolbar button is clicked. Any dock window can be added to a dock area either using addDockWindow(), or by creating a dock window with the QMainWindow as the parent.
@@ -336,7 +336,7 @@ Often we want to synchronize a toolbar button with a menu item. For example, if
.br
CTRL+Key_O, this, "open" );
.br
- connect( fileOpenAction, SIGNAL( activated() ) , this, SLOT( choose() ) );
+ connect( fileOpenAction, TQ_SIGNAL( activated() ) , this, TQ_SLOT( choose() ) );
.fi
.PP
Here we create an action with an icon which will be used in any menu and toolbar that the action is added to. We've also given the action a menu name, '&Open', and a keyboard shortcut. The connection that we have made will be used when the user clicks either the menu item \fIor\fR the toolbar button.
@@ -751,7 +751,7 @@ This is the same as QWhatsThis::enterWhatsThisMode(), but implemented as a main
.br
QPopupMenu * help = new QPopupMenu( this );
.br
- help->insertItem( "What's &This", this , SLOT(whatsThis()), SHIFT+Key_F1);
+ help->insertItem( "What's &This", this , TQ_SLOT(whatsThis()), SHIFT+Key_F1);
.br
.fi
.PP