Eneboo - Documentación para desarrolladores
Slots públicos | Métodos públicos | Métodos públicos estáticos | Métodos protegidos | Métodos protegidos estáticos | Propiedades
Referencia de la Clase AQSObject

#include <AQSObject_p.h>

Diagrama de herencias de AQSObject
AQSBaseObject QObject Qt Qt AQSAction AQSApplication AQSCanvas AQSDragObject AQSEventLoop AQSJasperEngine AQSLayout AQSNetworkOperation AQSNetworkProtocol AQSProcess AQSReportEngine AQSSignalMapper AQSSInterpreter AQSSocketNotifier AQSSProject AQSSqlCursor AQSSqlQuery AQSSScript AQSTableMD AQSTimer AQSUrlOperator AQSWidget

Lista de todos los miembros.

Slots públicos

bool isEqual (QObject *other) const
bool isEqual (AQSBaseObject *other) const
QObjectparent () const
QObjectchild (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 QDomNodetoXml (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< QVariantallowedEvents () const
void setObjectName (const QCString &name)
QCString objectName () const

Métodos públicos estáticos

static QMap< int, QStringListcandidateConstructors ()

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

Documentación del constructor y destructor

AQSObject::AQSObject ( QObject qo) [inline]

Documentación de las funciones miembro

QValueList<QVariant> AQSObject::allowedEvents ( ) const [inline]
static QMap<int, QStringList> AQSObject::candidateConstructors ( ) [inline, static]
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]
virtual bool AQSObject::eventFilter ( QObject ,
QEvent  
) [inline, virtual]

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.

Atención:
If you delete the receiver object in this function, be sure to return TRUE. Otherwise, Qt will forward the event to the deleted object and the program might crash.
Ver también:
installEventFilter()

Reimplementado de QObject.

QString AQSObject::eventFilterFunction ( ) const [inline]
bool AQSObject::inherits ( const QString clname) const [inline, slot]
virtual void AQSObject::insertChild ( QObject obj) [inline, virtual, slot]

Inserts an object obj into the list of child objects.

Atención:
This function cannot be used to make one widget the child widget of another widget. Child widgets can only be created by setting the parent widget in the constructor or by calling QWidget::reparent().
Ver también:
removeChild(), QWidget::reparent()

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::isA ( const QString clname) const [inline, slot]
bool AQSObject::isEqual ( QObject other) const [inline, slot]
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]

Returns a pointer to the parent object.

Ver también:
children()

Reimplementado de QObject.

virtual void AQSObject::removeChild ( QObject obj) [inline, virtual, slot]

Removes the child object obj from the list of children.

Atención:
This function will not remove a child widget from the screen. It will only remove it from the parent widget's list of children.
Ver también:
insertChild(), QWidget::reparent()

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]
int AQSObject::startInternalTimer ( int  interval) [inline, slot]
virtual QDomNode* AQSObject::toXml ( bool  includeComplexTypes = false) [inline, virtual, slot]

Reimplementado de AQSBaseObject.

Reimplementado en AQSLayout.


Documentación de propiedades

QValueList AQSObject::allowedEvents [read, write]
QString AQSObject::eventFilterFunction [read, write]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'