QSignalMapper Class Reference
The QSignalMapper class bundles signals from identifiable senders.
More...
#include <qsignalmapper.h>
Inherits QObject.
List of all member functions.
Public Members
virtual void
setMapping ( const QObject * sender, int identifier )
virtual void
setMapping ( const QObject * sender, const QString & identifier )
Public Slots
Signals
void
mapped ( const QString & )
Detailed Description
The QSignalMapper class bundles signals from identifiable senders.
Collects a set of parameterless signals, re-emitting them with an
integer or string parameters corresponding to the object that sent the
signal.
Member Function Documentation
QSignalMapper::QSignalMapper ( QObject * parent, const char * name = 0 )
Constructs a QSignalMapper. Like all QObjects, it will be deleted when the
parent is deleted.
QSignalMapper::~QSignalMapper ()
Destroys the QSignalMapper.
void QSignalMapper::map () [slot]
This slot emits signals based on which object sends signals
to it.
Example: i18n/main.cpp.
void QSignalMapper::mapped ( int ) [signal]
This signal is emitted when map() is signaled from an object that
has an integer mapping set.
See also setMapping(int).
Example: i18n/main.cpp.
void QSignalMapper::mapped ( const QString & ) [signal]
This signal is emitted when map() is signaled from an object that
has a string mapping set.
See also setMapping(QString).
void QSignalMapper::removeMappings ( const QObject * sender )
Removes all mappings for sender. This is done automatically
when mapped objects are destroyed.
void QSignalMapper::setMapping ( const QObject * sender, int identifier ) [virtual]
Adds a mapping so that when map() is signaled from the given
sender, the signal mapped(identifier) is emitted.
There may be at most one integer identifier for each object.
Example: i18n/main.cpp.
void QSignalMapper::setMapping ( const QObject * sender, const QString & identifier ) [virtual]
Adds a mapping so that when map() is signaled from the given
sender, the signal mapper(identifier) is emitted.
There may be at most one string identifier for each object, and
it may not be null.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2001
Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks
| Qt version 3.0.0-beta1-beta1
|