Eneboo - Documentación para desarrolladores
|
The QSignalMapper class bundles signals from identifiable senders. Más...
#include <qsignalmapper.h>
Slots públicos | |
void | map () |
void | map () |
Señales | |
void | mapped (int) |
void | mapped (const QString &) |
void | mapped (int) |
void | mapped (const QString &) |
Métodos públicos | |
QSignalMapper (QObject *parent, const char *name=0) | |
~QSignalMapper () | |
virtual void | setMapping (const QObject *sender, int identifier) |
virtual void | setMapping (const QObject *sender, const QString &identifier) |
void | removeMappings (const QObject *sender) |
QSignalMapper (QObject *parent, const char *name=0) | |
~QSignalMapper () | |
virtual void | setMapping (const QObject *sender, int identifier) |
virtual void | setMapping (const QObject *sender, const QString &identifier) |
void | removeMappings (const QObject *sender) |
The QSignalMapper class bundles signals from identifiable senders.
This class collects a set of parameterless signals, and re-emits them with integer or string parameters corresponding to the object that sent the signal.
QSignalMapper::QSignalMapper | ( | QObject * | parent, |
const char * | name = 0 |
||
) |
Constructs a QSignalMapper called name, with parent parent. Like all QObjects, it will be deleted when the parent is deleted.
QSignalMapper::~QSignalMapper | ( | ) |
Destroys the QSignalMapper.
QSignalMapper::QSignalMapper | ( | QObject * | parent, |
const char * | name = 0 |
||
) |
QSignalMapper::~QSignalMapper | ( | ) |
void QSignalMapper::map | ( | ) | [slot] |
This slot emits signals based on which object sends signals to it.
void QSignalMapper::map | ( | ) | [slot] |
void QSignalMapper::mapped | ( | const QString & | ) | [signal] |
void QSignalMapper::mapped | ( | const QString & | t0 | ) | [signal] |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
This signal is emitted when map() is signaled from an object that has a string mapping set.
void QSignalMapper::mapped | ( | int | ) | [signal] |
void QSignalMapper::mapped | ( | int | t0 | ) | [signal] |
This signal is emitted when map() is signaled from an object that has an integer mapping set.
void QSignalMapper::removeMappings | ( | const QObject * | sender | ) |
void QSignalMapper::removeMappings | ( | const QObject * | sender | ) |
Removes all mappings for sender. This is done automatically when mapped objects are destroyed.
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. 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 empty.
virtual 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 mapped(identifier) is emitted.
There may be at most one integer identifier for each object.