|
Eneboo - Documentación para desarrolladores
|
Wrapper para QObject::queryList. Más...
#include <FLObjectFactory.h>
Slots públicos | |
| QObject * | first () const |
| QObject * | last () const |
| QObject * | next () const |
| QObject * | prev () const |
| QObject * | current () const |
| bool | isValid () const |
Métodos públicos | |
| AQObjectQueryList (QObject *obj, const QString &inheritsClass, const QString &objName, bool regexpMatch, bool recursiveSearch) | |
| AQObjectQueryList (QObject *obj) | |
| ~AQObjectQueryList () | |
Wrapper para QObject::queryList.
Ejemplo:
.... class interna { var ctx:Object; function interna( context ) { this.ctx = context; } function init() { this.ctx.interna_init(); } var signalMapper; function dispatcher(name) { this.ctx.interna_dispatcher(name); } } ... ... function interna_init() { var sigMap = this.iface.signalMapper = new AQSignalMapper(this.obj()); connect(sigMap, "mapped(QString)", this.iface, "dispatcher()"); var list = new AQObjectQueryList(this.obj(), "QPushButton", "", true, true); var obj; while((obj = list.current()) != undefined) { connect(obj, "clicked()", sigMap, "map()"); sigMap.setMapping(obj, obj.name); list.next(); } } function interna_dispatcher(name) { debug ("dispatcher " + name); switch (name) { case "pbClear": ... break; case "pbFilter": ... break; ... ... etc ... etc ... etc ... } } ... ...
| AQObjectQueryList::AQObjectQueryList | ( | QObject * | obj, |
| const QString & | inheritsClass, | ||
| const QString & | objName, | ||
| bool | regexpMatch, | ||
| bool | recursiveSearch | ||
| ) | [inline] |
| AQObjectQueryList::AQObjectQueryList | ( | QObject * | obj | ) | [inline] |
| AQObjectQueryList::~AQObjectQueryList | ( | ) | [inline] |
| QObject* AQObjectQueryList::current | ( | ) | const [inline, slot] |
| QObject* AQObjectQueryList::first | ( | ) | const [inline, slot] |
| bool AQObjectQueryList::isValid | ( | ) | const [inline, slot] |
| QObject* AQObjectQueryList::last | ( | ) | const [inline, slot] |
| QObject* AQObjectQueryList::next | ( | ) | const [inline, slot] |
| QObject* AQObjectQueryList::prev | ( | ) | const [inline, slot] |
1.7.4