summaryrefslogtreecommitdiffstats
path: root/doc/man
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man')
-rw-r--r--doc/man/man3/tqaccel.3qt8
-rw-r--r--doc/man/man3/tqaction.3qt6
-rw-r--r--doc/man/man3/tqactiongroup.3qt2
-rw-r--r--doc/man/man3/tqapplication.3qt6
-rw-r--r--doc/man/man3/tqaxbase.3qt8
-rw-r--r--doc/man/man3/tqkeysequence.3qt2
-rw-r--r--doc/man/man3/tqmainwindow.3qt8
-rw-r--r--doc/man/man3/tqmenubar.3qt10
-rw-r--r--doc/man/man3/tqmenudata.3qt6
-rw-r--r--doc/man/man3/tqobject.3qt14
-rw-r--r--doc/man/man3/tqpopupmenu.3qt6
-rw-r--r--doc/man/man3/tqprocess.3qt6
-rw-r--r--doc/man/man3/tqprogressdialog.3qt4
-rw-r--r--doc/man/man3/tqstatusbar.3qt4
-rw-r--r--doc/man/man3/tqtableitem.3qt2
-rw-r--r--doc/man/man3/tqtimer.3qt6
-rw-r--r--doc/man/man3/tqtooltipgroup.3qt8
17 files changed, 53 insertions, 53 deletions
diff --git a/doc/man/man3/tqaccel.3qt b/doc/man/man3/tqaccel.3qt
index 3b06cbbf..423ecd6d 100644
--- a/doc/man/man3/tqaccel.3qt
+++ b/doc/man/man3/tqaccel.3qt
@@ -110,7 +110,7 @@ In most cases, you will not need to use this class directly. Use the QAction cla
.br
QPopupMenu *fileMenu = new fileMenu( parent );
.br
- fileMenu->insertItem( "Undo", parent, SLOT(undo()), CTRL+Key_Z );
+ fileMenu->insertItem( "Undo", parent, TQ_SLOT(undo()), CTRL+Key_Z );
.br
.fi
.PP
@@ -147,7 +147,7 @@ Example:
.br
myWindow, // connected to myWindow's
.br
- SLOT(printDoc()) ); // printDoc() slot
+ TQ_SLOT(printDoc()) ); // printDoc() slot
.br
.fi
.PP
@@ -176,7 +176,7 @@ Connects the accelerator item \fIid\fR to the slot \fImember\fR of \fIreceiver\f
.PP
.nf
.br
- a->connectItem( 201, mainView, SLOT(quit()) );
+ a->connectItem( 201, mainView, TQ_SLOT(quit()) );
.br
.fi
.PP
@@ -280,7 +280,7 @@ This function is typically used with tr(), so that accelerator keys can be repla
.br
QPopupMenu *file = new QPopupMenu( this );
.br
- file->insertItem( p1, tr("&Open..."), this, SLOT(open()),
+ file->insertItem( p1, tr("&Open..."), this, TQ_SLOT(open()),
.br
QAccel::stringToKey(tr("Ctrl+O", "File|Open")) );
.br
diff --git a/doc/man/man3/tqaction.3qt b/doc/man/man3/tqaction.3qt
index abdbe40a..7ccc0982 100644
--- a/doc/man/man3/tqaction.3qt
+++ b/doc/man/man3/tqaction.3qt
@@ -196,7 +196,7 @@ Once a QAction has been created it should be added to the relevant menu and tool
.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
We create a "File Save" action with a menu text of "&Save" and \fICtrl+S\fR as the keyboard accelerator. We connect the fileSaveAction's activated() signal to our own save() slot. Note that at this point there is no menu or toolbar action, we'll add them next:
@@ -400,9 +400,9 @@ To trigger a user command depending on whether a toggle action has been switched
.PP
.nf
.br
- TQObject::connect( labelonoffaction, SIGNAL( toggled( bool ) ),
+ TQObject::connect( labelonoffaction, TQ_SIGNAL( toggled( bool ) ),
.br
- window, SLOT( setUsesTextLabel( bool ) ) );
+ window, TQ_SLOT( setUsesTextLabel( bool ) ) );
.fi
.PP
See also activated(), toggleAction, and on.
diff --git a/doc/man/man3/tqactiongroup.3qt b/doc/man/man3/tqactiongroup.3qt
index f6ba0909..7ef50bdc 100644
--- a/doc/man/man3/tqactiongroup.3qt
+++ b/doc/man/man3/tqactiongroup.3qt
@@ -77,7 +77,7 @@ Here's an example from examples/textedit:
.br
QActionGroup *grp = new QActionGroup( this );
.br
- connect( grp, SIGNAL( selected( QAction* ) ), this, SLOT( textAlign( QAction* ) ) );
+ connect( grp, TQ_SIGNAL( selected( QAction* ) ), this, TQ_SLOT( textAlign( QAction* ) ) );
.fi
.PP
Here we create a new action group. Since the action group is exclusive by default, only one of the actions in the group is ever active at any one time. We then connect the group's selected() signal to our textAlign() slot.
diff --git a/doc/man/man3/tqapplication.3qt b/doc/man/man3/tqapplication.3qt
index 56a54638..e2efca12 100644
--- a/doc/man/man3/tqapplication.3qt
+++ b/doc/man/man3/tqapplication.3qt
@@ -792,12 +792,12 @@ This function is particularly useful for applications with many top-level window
.br
QPopupMenu* file = new QPopupMenu( this );
.br
- file->insertItem( "&Quit", tqApp, SLOT(closeAllWindows()), CTRL+Key_Q );
+ file->insertItem( "&Quit", tqApp, TQ_SLOT(closeAllWindows()), CTRL+Key_Q );
.br
.br
// when the last window is closed, the application should quit
.br
- connect( tqApp, SIGNAL( lastWindowClosed() ), tqApp, SLOT( quit() ) );
+ connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), tqApp, TQ_SLOT( quit() ) );
.br
.fi
.PP
@@ -1131,7 +1131,7 @@ Example:
.br
QPushButton *quitButton = new QPushButton( "Quit" );
.br
- connect( quitButton, SIGNAL(clicked()), tqApp, SLOT(quit()) );
+ connect( quitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
.br
.fi
.PP
diff --git a/doc/man/man3/tqaxbase.3qt b/doc/man/man3/tqaxbase.3qt
index 8b365f36..7d8a68b7 100644
--- a/doc/man/man3/tqaxbase.3qt
+++ b/doc/man/man3/tqaxbase.3qt
@@ -120,7 +120,7 @@ QAxBase is an abstract class that cannot be used directly, and is instantiated t
.PP
.nf
.br
- connect( buttonBack, SIGNAL(clicked()), webBrowser, SLOT(GoBack()) );
+ connect( buttonBack, TQ_SIGNAL(clicked()), webBrowser, TQ_SLOT(GoBack()) );
.br
.fi
.PP
@@ -146,9 +146,9 @@ Outgoing events supported by the COM object are emitted as standard TQt signals.
.PP
.nf
.br
- connect( webBrowser, SIGNAL(TitleChanged(const TQString&)),
+ connect( webBrowser, TQ_SIGNAL(TitleChanged(const TQString&)),
.br
- this, SLOT(setCaption(const TQString&)) );
+ this, TQ_SLOT(setCaption(const TQString&)) );
.br
.fi
.PP
@@ -203,7 +203,7 @@ use the QAxBase API like this:
object.setProperty( "font", QFont( "Times New Roman", 12 ) );
.br
.br
- connect( this, SIGNAL(clicked(int)), &object, SLOT(showColumn(int)) );
+ connect( this, TQ_SIGNAL(clicked(int)), &object, TQ_SLOT(showColumn(int)) );
.br
bool ok = object.dynamicCall( "addColumn(const TQString&)", "Column 1" ).toBool();
.br
diff --git a/doc/man/man3/tqkeysequence.3qt b/doc/man/man3/tqkeysequence.3qt
index 5e975930..37dd4ac1 100644
--- a/doc/man/man3/tqkeysequence.3qt
+++ b/doc/man/man3/tqkeysequence.3qt
@@ -92,7 +92,7 @@ This contructor is typically used with tr(), so that accelerator keys can be rep
.br
QPopupMenu *file = new QPopupMenu( this );
.br
- file->insertItem( tr("&Open..."), this, SLOT(open()),
+ file->insertItem( tr("&Open..."), this, TQ_SLOT(open()),
.br
QKeySequence( tr("Ctrl+O", "File|Open") ) );
.br
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
diff --git a/doc/man/man3/tqmenubar.3qt b/doc/man/man3/tqmenubar.3qt
index 22d7106f..42289d79 100644
--- a/doc/man/man3/tqmenubar.3qt
+++ b/doc/man/man3/tqmenubar.3qt
@@ -170,9 +170,9 @@ Example of creating a menu bar with menu items (from menu/menu.cpp):
.PP
.nf
.br
- file->insertItem( p1, "&Open", this, SLOT(open()), CTRL+Key_O );
+ file->insertItem( p1, "&Open", this, TQ_SLOT(open()), CTRL+Key_O );
.br
- file->insertItem( p2, "&New", this, SLOT(news()), CTRL+Key_N );
+ file->insertItem( p2, "&New", this, TQ_SLOT(news()), CTRL+Key_N );
.fi
.PP
.nf
@@ -294,9 +294,9 @@ Example:
.br
QPopupMenu *fileMenu = new QPopupMenu;
.br
- fileMenu->insertItem( "New", myView, SLOT(newFile()), CTRL+Key_N );
+ fileMenu->insertItem( "New", myView, TQ_SLOT(newFile()), CTRL+Key_N );
.br
- fileMenu->insertItem( "Open", myView, SLOT(open()), CTRL+Key_O );
+ fileMenu->insertItem( "Open", myView, TQ_SLOT(open()), CTRL+Key_O );
.br
mainMenu->insertItem( "File", fileMenu );
.br
@@ -308,7 +308,7 @@ If you need to translate accelerators, use tr() with the text and accelerator. (
.PP
.nf
.br
- fileMenu->insertItem( tr("Open"), myView, SLOT(open()),
+ fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()),
.br
tr("Ctrl+O") );
.br
diff --git a/doc/man/man3/tqmenudata.3qt b/doc/man/man3/tqmenudata.3qt
index 60115fc3..cbc1f527 100644
--- a/doc/man/man3/tqmenudata.3qt
+++ b/doc/man/man3/tqmenudata.3qt
@@ -334,9 +334,9 @@ Example:
.br
QPopupMenu *fileMenu = new QPopupMenu;
.br
- fileMenu->insertItem( "New", myView, SLOT(newFile()), CTRL+Key_N );
+ fileMenu->insertItem( "New", myView, TQ_SLOT(newFile()), CTRL+Key_N );
.br
- fileMenu->insertItem( "Open", myView, SLOT(open()), CTRL+Key_O );
+ fileMenu->insertItem( "Open", myView, TQ_SLOT(open()), CTRL+Key_O );
.br
mainMenu->insertItem( "File", fileMenu );
.br
@@ -348,7 +348,7 @@ If you need to translate accelerators, use tr() with the text and accelerator. (
.PP
.nf
.br
- fileMenu->insertItem( tr("Open"), myView, SLOT(open()),
+ fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()),
.br
tr("Ctrl+O") );
.br
diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt
index 0d64d9bc..1ed6f43e 100644
--- a/doc/man/man3/tqobject.3qt
+++ b/doc/man/man3/tqobject.3qt
@@ -298,7 +298,7 @@ Example: sql/overview/custom1/main.cpp.
.SH "bool TQObject::connect ( const TQObject * sender, const char * signal, const TQObject * receiver, const char * member )\fC [static]\fR"
Connects \fIsignal\fR from the \fIsender\fR object to \fImember\fR in object \fIreceiver\fR, and returns TRUE if the connection succeeds; otherwise returns FALSE.
.PP
-You must use the SIGNAL() and SLOT() macros when specifying the \fIsignal\fR and the \fImember\fR, for example:
+You must use the TQ_SIGNAL() and TQ_SLOT() macros when specifying the \fIsignal\fR and the \fImember\fR, for example:
.PP
.nf
.br
@@ -306,13 +306,13 @@ You must use the SIGNAL() and SLOT() macros when specifying the \fIsignal\fR and
.br
QScrollBar *scroll = new QScrollBar;
.br
- TQObject::connect( scroll, SIGNAL(valueChanged(int)),
+ TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int)),
.br
- label, SLOT(setNum(int)) );
+ label, TQ_SLOT(setNum(int)) );
.br
.fi
.PP
-This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return FALSE: TQObject::connect( scroll, SIGNAL(valueChanged(int v)), label, SLOT(setNum(int v)) );
+This example ensures that the label always displays the current scroll bar value. Note that the signal and slots parameters must not contain any variable names, only the type. E.g. the following would not work and return FALSE: TQObject::connect( scroll, TQ_SIGNAL(valueChanged(int v)), label, TQ_SLOT(setNum(int v)) );
.PP
A signal can also be connected to another signal:
.PP
@@ -347,7 +347,7 @@ A signal can also be connected to another signal:
.br
aButton = new QPushButton( this );
.br
- connect( aButton, SIGNAL(clicked()), SIGNAL(myUsefulSignal()) );
+ connect( aButton, TQ_SIGNAL(clicked()), TQ_SIGNAL(myUsefulSignal()) );
.br
}
.br
@@ -429,14 +429,14 @@ Disconnect everything connected to a specific signal:
.IP
.nf
.br
- disconnect( myObject, SIGNAL(mySignal()), 0, 0 );
+ disconnect( myObject, TQ_SIGNAL(mySignal()), 0, 0 );
.br
.fi
equivalent to the non-static overloaded function
.IP
.nf
.br
- myObject->disconnect( SIGNAL(mySignal()) );
+ myObject->disconnect( TQ_SIGNAL(mySignal()) );
.br
.fi
.IP 3
diff --git a/doc/man/man3/tqpopupmenu.3qt b/doc/man/man3/tqpopupmenu.3qt
index d8dfa0b3..05df9122 100644
--- a/doc/man/man3/tqpopupmenu.3qt
+++ b/doc/man/man3/tqpopupmenu.3qt
@@ -422,9 +422,9 @@ Example:
.br
QPopupMenu *fileMenu = new QPopupMenu;
.br
- fileMenu->insertItem( "New", myView, SLOT(newFile()), CTRL+Key_N );
+ fileMenu->insertItem( "New", myView, TQ_SLOT(newFile()), CTRL+Key_N );
.br
- fileMenu->insertItem( "Open", myView, SLOT(open()), CTRL+Key_O );
+ fileMenu->insertItem( "Open", myView, TQ_SLOT(open()), CTRL+Key_O );
.br
mainMenu->insertItem( "File", fileMenu );
.br
@@ -436,7 +436,7 @@ If you need to translate accelerators, use tr() with the text and accelerator. (
.PP
.nf
.br
- fileMenu->insertItem( tr("Open"), myView, SLOT(open()),
+ fileMenu->insertItem( tr("Open"), myView, TQ_SLOT(open()),
.br
tr("Ctrl+O") );
.br
diff --git a/doc/man/man3/tqprocess.3qt b/doc/man/man3/tqprocess.3qt
index 11572e37..24eb27ca 100644
--- a/doc/man/man3/tqprocess.3qt
+++ b/doc/man/man3/tqprocess.3qt
@@ -178,9 +178,9 @@ A code snippet for this with the QProcess class might look like this:
proc->addArgument( "small_dialog.ui" );
.br
.br
- connect( proc, SIGNAL(readyReadStdout()),
+ connect( proc, TQ_SIGNAL(readyReadStdout()),
.br
- this, SLOT(readFromStdout()) );
+ this, TQ_SLOT(readFromStdout()) );
.fi
.PP
.nf
@@ -339,7 +339,7 @@ The nice way to end a process and to be sure that it is finished, is to do somet
.br
process->tryTerminate();
.br
- QTimer::singleShot( 5000, process, SLOT( kill() ) );
+ QTimer::singleShot( 5000, process, TQ_SLOT( kill() ) );
.br
.fi
.PP
diff --git a/doc/man/man3/tqprogressdialog.3qt b/doc/man/man3/tqprogressdialog.3qt
index 3bfd25ac..0b8e9f2e 100644
--- a/doc/man/man3/tqprogressdialog.3qt
+++ b/doc/man/man3/tqprogressdialog.3qt
@@ -189,11 +189,11 @@ Operation::Operation( TQObject *parent = 0 )
.br
pd = new QProgressDialog( "Operation in progress.", "Cancel", 100 );
.br
- connect( pd, SIGNAL(canceled()), this, SLOT(cancel()) );
+ connect( pd, TQ_SIGNAL(canceled()), this, TQ_SLOT(cancel()) );
.br
t = new QTimer( this );
.br
- connect( t, SIGNAL(timeout()), this, SLOT(perform()) );
+ connect( t, TQ_SIGNAL(timeout()), this, TQ_SLOT(perform()) );
.br
t->start( 0 );
.br
diff --git a/doc/man/man3/tqstatusbar.3qt b/doc/man/man3/tqstatusbar.3qt
index e24daa92..1e0cc38c 100644
--- a/doc/man/man3/tqstatusbar.3qt
+++ b/doc/man/man3/tqstatusbar.3qt
@@ -87,9 +87,9 @@ To display a \fItemporary\fR message, call message() (perhaps by connecting a su
.PP
.nf
.br
- connect( loader, SIGNAL(progressMessage(const TQString&)),
+ connect( loader, TQ_SIGNAL(progressMessage(const TQString&)),
.br
- statusBar(), SLOT(message(const TQString&)) );
+ statusBar(), TQ_SLOT(message(const TQString&)) );
.br
.br
statusBar()->message("Loading..."); // Initial message
diff --git a/doc/man/man3/tqtableitem.3qt b/doc/man/man3/tqtableitem.3qt
index adc77079..c6d85cbd 100644
--- a/doc/man/man3/tqtableitem.3qt
+++ b/doc/man/man3/tqtableitem.3qt
@@ -258,7 +258,7 @@ If you reimplement this function you'll almost certainly need to reimplement set
.br
( (ComboItem*)this )->cb = new QComboBox( table()->viewport() );
.br
- TQObject::connect( cb, SIGNAL( activated( int ) ), table(), SLOT( doValueChanged() ) );
+ TQObject::connect( cb, TQ_SIGNAL( activated( int ) ), table(), TQ_SLOT( doValueChanged() ) );
.br
cb->insertItem( "Yes" );
.br
diff --git a/doc/man/man3/tqtimer.3qt b/doc/man/man3/tqtimer.3qt
index c690bbed..14a67dc7 100644
--- a/doc/man/man3/tqtimer.3qt
+++ b/doc/man/man3/tqtimer.3qt
@@ -62,7 +62,7 @@ Example:
.br
QTimer *timer = new QTimer( myObject );
.br
- connect( timer, SIGNAL(timeout()), myObject, SLOT(timerDone()) );
+ connect( timer, TQ_SIGNAL(timeout()), myObject, TQ_SLOT(timerDone()) );
.br
timer->start( 2000, TRUE ); // 2 seconds single-shot timer
.br
@@ -78,7 +78,7 @@ This can be used to do heavy work while providing a snappy user interface:
.br
QTimer *t = new QTimer( myObject );
.br
- connect( t, SIGNAL(timeout()), SLOT(processOneThing()) );
+ connect( t, TQ_SIGNAL(timeout()), TQ_SLOT(processOneThing()) );
.br
t->start( 0, FALSE );
.br
@@ -130,7 +130,7 @@ Example:
.br
QApplication a( argc, argv );
.br
- QTimer::singleShot( 10*60*1000, &a, SLOT(quit()) );
+ QTimer::singleShot( 10*60*1000, &a, TQ_SLOT(quit()) );
.br
... // create and show your widgets
.br
diff --git a/doc/man/man3/tqtooltipgroup.3qt b/doc/man/man3/tqtooltipgroup.3qt
index 5f54a0b3..64f9d45b 100644
--- a/doc/man/man3/tqtooltipgroup.3qt
+++ b/doc/man/man3/tqtooltipgroup.3qt
@@ -66,13 +66,13 @@ QToolTipGroup has practically no API; it is only used as an argument to QToolTip
.br
QToolTipGroup * grp = new QToolTipGroup( this, "tool tip relay" );
.br
- connect( grp, SIGNAL(showTip(const TQString&)),
+ connect( grp, TQ_SIGNAL(showTip(const TQString&)),
.br
- myLabel, SLOT(setText(const TQString&)) );
+ myLabel, TQ_SLOT(setText(const TQString&)) );
.br
- connect( grp, SIGNAL(removeTip()),
+ connect( grp, TQ_SIGNAL(removeTip()),
.br
- myLabel, SLOT(clear()) );
+ myLabel, TQ_SLOT(clear()) );
.br
QToolTip::add( giraffeButton, "feed giraffe",
.br