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

template<typename T>
QBool QList< T >::contains ( const T &  value ) const [inherited]

Returns true if the list contains an occurrence of value; otherwise returns false.

This function requires the value type to have an implementation of operator==().

See also:
indexOf(), count()

Definition at line 662 of file qlist.h.

Referenced by QGraphicsScenePrivate::_q_removeItemLater(), Q3ActionGroup::add(), AddressWidget::addEntry(), qdesigner_internal::FormWindowManager::addFormWindow(), QTextCodec::availableCodecs(), QTextCodec::availableMibs(), QDBusAbstractInterface::callWithArgumentList(), QApplication::commitData(), Phonon::QT7::Backend::connectNodes(), QApplicationArgumentParser::count(), QTreeWidget::dropEvent(), QListWidget::dropEvent(), QAbstractItemViewPrivate::droppingOnItself(), Phonon::QT7::Backend::endConnectionChange(), Q3Table::eventFilter(), QApplicationArgumentParser::has(), QPictureIO::inputFormats(), Q3DockArea::isDockWindowAccepted(), KAstTopLevel::keyPressEvent(), KAstTopLevel::keyReleaseEvent(), QtGradientStopsWidget::mouseMoveEvent(), Q3DockArea::moveDockWindow(), QPictureIO::outputFormats(), QFontDatabase::pointSizes(), Phonon::Path::reconnect(), QAccessibleApplication::relationTo(), QTextTable::removeColumns(), Q3DockArea::removeDockWindow(), QTextTable::removeRows(), QTreeWidget::selectedItems(), Q3DockArea::setAcceptDockWindow(), qdesigner_internal::FormWindow::simplifySelection(), QFontDatabase::smoothSizes(), NetworkAccessManager::sslErrors(), QApplicationArgumentParser::value(), QApplicationArgumentParser::values(), and QFontDatabase::writingSystems().

{
    Node *b = reinterpret_cast<Node *>(p.begin());
    Node *i = reinterpret_cast<Node *>(p.end());
    while (i-- != b)
        if (i->t() == t)
            return QBool(true);
    return QBool(false);
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index