Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QObject::removeEventFilter ( QObject obj  )  [inherited]

Removes an event filter object obj from this object. The request is ignored if such an event filter has not been installed.

All event filters for this object are automatically removed when this object is destroyed.

It is always safe to remove an event filter, even during event filter activation (i.e. from the eventFilter() function).

See also:
installEventFilter(), eventFilter(), event()

Definition at line 2009 of file qobject.cpp.

Referenced by Q3ScrollView::addChild(), Q3Table::clearCellWidget(), QDataWidgetMapper::clearMapping(), QAbstractItemView::closeEditor(), QAbstractItemView::commitData(), QScrollArea::event(), Q3DockArea::eventFilter(), Q3DockArea::removeDockWindow(), Q3MainWindow::removeDockWindow(), QDataWidgetMapper::removeMapping(), QtWindowListMenu::removeWindow(), FindWidget::setTextEdit(), QPlastiqueStyle::unpolish(), QWindowsStyle::unpolish(), and QMotifStyle::unpolish().

{
    Q_D(QObject);
    for (int i = 0; i < d->eventFilters.count(); ++i) {
        if (d->eventFilters.at(i) == obj)
            d->eventFilters[i] = 0;
    }
}


Generated by  Doxygen 1.6.0   Back to index