Eneboo - Documentación para desarrolladores
|
#include <AQSObject_p.h>
Slots públicos | |
bool | isEqual (QObject *other) const |
bool | isEqual (AQSBaseObject *other) const |
QObject * | parent () const |
QObject * | child (const QString &objName, const QString &inheritsClass=QString::null, bool recursiveSearch=true) |
void | installEventFilter (QObject *filterObj) |
void | removeEventFilter (QObject *obj) |
bool | isWidgetType () const |
bool | isA (const QString &clname) const |
bool | inherits (const QString &clname) const |
int | startInternalTimer (int interval) |
void | killInternalTimer (int id) |
virtual QCString | className () |
virtual QCString | rtti () |
virtual void | insertChild (QObject *obj) |
virtual void | removeChild (QObject *obj) |
virtual QDomNode * | toXml (bool includeComplexTypes=false) |
Métodos públicos | |
AQSObject (QObject *qo) | |
virtual bool | eventFilter (QObject *o, QEvent *e) |
void | setEventFilterFunction (const QString &functionName) |
QString | eventFilterFunction () const |
void | setAllowedEvents (const QValueList< QVariant > &allowed) |
QValueList< QVariant > | allowedEvents () const |
void | setObjectName (const QCString &name) |
QCString | objectName () const |
Métodos públicos estáticos | |
static QMap< int, QStringList > | candidateConstructors () |
Métodos protegidos | |
void | internalInit (void *o) |
void | internalInit (QObject *o) |
Métodos protegidos estáticos | |
static void * | construct (const QSArgumentList &args) |
Propiedades | |
QString | eventFilterFunction |
QValueList | allowedEvents |
AQSObject::AQSObject | ( | QObject * | qo | ) | [inline] |
QValueList<QVariant> AQSObject::allowedEvents | ( | ) | const [inline] |
static QMap<int, QStringList> AQSObject::candidateConstructors | ( | ) | [inline, static] |
Reimplementado de AQSBaseObject.
Reimplementado en AQSAction, AQSActionGroup, AQSBoxLayout, AQSButton, AQSButtonGroup, AQSCanvas, AQSCanvasView, AQSCheckBox, AQSColorDrag, AQSComboBox, AQSDataTable, AQSDataTableDB, AQSDateEdit, AQSDial, AQSDialog, AQSDockArea, AQSDockWindow, AQSEventLoop, AQSFieldDB, AQSFormDB, AQSFormRecordDB, AQSFormSearchDB, AQSFrame, AQSGroupBox, AQSHBoxLayout, AQSHButtonGroup, AQSHeader, AQSHGroupBox, AQSHttp, AQSIconDrag, AQSIconView, AQSImageDrag, AQSJasperEngine, AQSLabel, AQSLineEdit, AQSListBox, AQSListView, AQSMainWindow, AQSMenuBar, AQSNetworkOperation, AQSNetworkProtocol, AQSPopupMenu, AQSProcess, AQSProgressBar, AQSProgressDialog, AQSPushButton, AQSRadioButton, AQSReportEngine, AQSReportViewer, AQSScrollView, AQSSEditor, AQSSignalMapper, AQSSocketNotifier, AQSSpinBox, AQSSplitter, AQSSqlCursor, AQSSqlQuery, AQSStatusBar, AQSStoredDrag, AQSTabBar, AQSTable, AQSTableDB, AQSTableMD, AQSTabWidget, AQSTextDrag, AQSTextEdit, AQSTimeEdit, AQSTimer, AQSToolBar, AQSToolBox, AQSToolButton, AQSUriDrag, AQSUrlOperator, AQSVBoxLayout, AQSVButtonGroup, AQSVGroupBox, AQSWidget, AQSWidgetStack y AQSWizard.
QObject* AQSObject::child | ( | const QString & | objName, |
const QString & | inheritsClass = QString::null , |
||
bool | recursiveSearch = true |
||
) | [inline, slot] |
virtual QCString AQSObject::className | ( | ) | [inline, virtual, slot] |
static void* AQSObject::construct | ( | const QSArgumentList & | args | ) | [inline, static, protected] |
Reimplementado de AQSBaseObject.
Reimplementado en AQSAction, AQSActionGroup, AQSApplication, AQSBoxLayout, AQSButton, AQSButtonGroup, AQSCanvas, AQSCanvasView, AQSCheckBox, AQSColorDrag, AQSComboBox, AQSDataTable, AQSDataTableDB, AQSDateEdit, AQSDial, AQSDialog, AQSDockArea, AQSDockWindow, AQSDragObject, AQSEventLoop, AQSFieldDB, AQSFormDB, AQSFormRecordDB, AQSFormSearchDB, AQSFrame, AQSGroupBox, AQSHBoxLayout, AQSHButtonGroup, AQSHeader, AQSHGroupBox, AQSHttp, AQSIconDrag, AQSIconView, AQSImageDrag, AQSJasperEngine, AQSLabel, AQSLineEdit, AQSListBox, AQSListView, AQSMainWindow, AQSMenuBar, AQSNetworkOperation, AQSNetworkProtocol, AQSPopupMenu, AQSProcess, AQSProgressBar, AQSProgressDialog, AQSPushButton, AQSRadioButton, AQSReportEngine, AQSReportViewer, AQSScrollView, AQSSEditor, AQSSignalMapper, AQSSInterpreter, AQSSocketNotifier, AQSSpinBox, AQSSplitter, AQSSProject, AQSSqlCursor, AQSSqlQuery, AQSSScript, AQSStatusBar, AQSStoredDrag, AQSTabBar, AQSTable, AQSTableDB, AQSTableMD, AQSTabWidget, AQSTextDrag, AQSTextEdit, AQSTimeEdit, AQSTimer, AQSToolBar, AQSToolBox, AQSToolButton, AQSUriDrag, AQSUrlOperator, AQSVBoxLayout, AQSVButtonGroup, AQSVGroupBox, AQSWidget, AQSWidgetStack y AQSWizard.
Filters events if this object has been installed as an event filter for the watched object.
In your reimplementation of this function, if you want to filter the event e, out, i.e. stop it being handled further, return TRUE; otherwise return FALSE.
Example:
class MyMainWindow : public QMainWindow { public: MyMainWindow( QWidget *parent = 0, const char *name = 0 ); protected: bool eventFilter( QObject *obj, QEvent *ev ); private: QTextEdit *textEdit; }; MyMainWindow::MyMainWindow( QWidget *parent, const char *name ) : QMainWindow( parent, name ) { textEdit = new QTextEdit( this ); setCentralWidget( textEdit ); textEdit->installEventFilter( this ); } bool MyMainWindow::eventFilter( QObject *obj, QEvent *ev ) { if ( obj == textEdit ) { if ( e->type() == QEvent::KeyPress ) { QKeyEvent *k = (QKeyEvent*)ev; qDebug( "Ate key press %d", k->key() ); return TRUE; } else { return FALSE; } } else { // pass the event on to the parent class return QMainWindow::eventFilter( obj, ev ); } }
Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.
Reimplementado de QObject.
QString AQSObject::eventFilterFunction | ( | ) | const [inline] |
virtual void AQSObject::insertChild | ( | QObject * | obj | ) | [inline, virtual, slot] |
Inserts an object obj into the list of child objects.
Reimplementado de QObject.
void AQSObject::installEventFilter | ( | QObject * | filterObj | ) | [inline, slot] |
void AQSObject::internalInit | ( | QObject * | o | ) | [inline, protected] |
Reimplementado de AQSBaseObject.
void AQSObject::internalInit | ( | void * | o | ) | [inline, protected] |
Reimplementado de AQSBaseObject.
bool AQSObject::isEqual | ( | AQSBaseObject * | other | ) | const [inline, slot] |
bool AQSObject::isWidgetType | ( | ) | const [inline, slot] |
Returns TRUE if the object is a widget; otherwise returns FALSE.
Calling this function is equivalent to calling inherits("QWidget"), except that it is much faster.
Reimplementado de QObject.
void AQSObject::killInternalTimer | ( | int | id | ) | [inline, slot] |
QCString AQSObject::objectName | ( | ) | const [inline] |
QObject* AQSObject::parent | ( | ) | const [inline, slot] |
virtual void AQSObject::removeChild | ( | QObject * | obj | ) | [inline, virtual, slot] |
Removes the child object obj from the list of children.
Reimplementado de QObject.
void AQSObject::removeEventFilter | ( | QObject * | obj | ) | [inline, slot] |
virtual QCString AQSObject::rtti | ( | ) | [inline, virtual, slot] |
void AQSObject::setAllowedEvents | ( | const QValueList< QVariant > & | allowed | ) | [inline] |
void AQSObject::setEventFilterFunction | ( | const QString & | functionName | ) | [inline] |
void AQSObject::setObjectName | ( | const QCString & | name | ) | [inline] |
Reimplementado de AQSBaseObject.
Reimplementado en AQSLayout.
QValueList AQSObject::allowedEvents [read, write] |
QString AQSObject::eventFilterFunction [read, write] |