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

template<typename T>
int QList< T >::count ( const T &  value  )  const [inline, inherited]

Returns the number of occurrences of value in the list.

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

See also:
contains(), indexOf()

Definition at line 665 of file qlist.h.

Referenced by QFileDialog::accept(), QMetaObject::activate(), QWidget::addActions(), QTreeWidgetItem::addChild(), QTreeWidgetItem::addChildren(), QPatternist::Expression::announceFocusType(), QCoreApplication::arguments(), QSqlQuery::boundValues(), QDialogButtonBox::buttonRole(), QDialogButtonBox::buttons(), QAbstractItemModel::changePersistentIndexList(), QAccessibleApplication::childAt(), TreeItem::childCount(), QAccessibleApplication::childCount(), QTreeWidgetItem::childrenCheckState(), QDialogButtonBox::clear(), TreeItem::columnCount(), QTreeWidgetItem::columnCount(), QItemSelectionModel::columnIntersectsSelection(), QPatternist::NormalizeUnicodeFN::compress(), QPatternist::UnlimitedContainer::compressOperands(), QMetaObject::connectSlotsByName(), QPatternist::Expression::constantPropagate(), Q3ComboTableItem::count(), QAbstractFileEngine::create(), MainWindow::createColorMenu(), QtEnumEditorFactory::createEditor(), QPatternist::AbstractFunctionFactory::createFunctionCall(), Window::createGeneralOptionsGroupBox(), TabWidget::currentChanged(), QTreeWidgetItem::data(), QPatternist::Expression::deepProperties(), QMetaObject::disconnect(), Phonon::Path::disconnect(), Q3FileDialog::done(), QTreeWidget::dropEvent(), QTableWidget::dropEvent(), QListWidget::dropEvent(), BookmarksModel::dropMimeData(), QItemSelectionModel::emitSelectionChanged(), QUrl::encodedQueryItems(), QPatternist::SubsequenceFN::evaluateSequence(), QPatternist::SumFN::evaluateSingleton(), QPatternist::AdjustTimezone::evaluateSingleton(), QPatternist::NormalizeUnicodeFN::evaluateSingleton(), QPatternist::RoundHalfToEvenFN::evaluateSingleton(), QPatternist::SubstringFN::evaluateSingleton(), QPatternist::ErrorFN::evaluateSingleton(), QDockWidget::event(), QSqlResult::execBatch(), QPatternist::ExpressionSequence::ExpressionSequence(), QHelpIndexModel::filter(), Q3TextEdit::focusNextPrevChild(), QKeySequence::fromString(), QDate::fromString(), QDateTime::fromString(), QHelpGenerator::generate(), Q3FileDialog::getOpenFileNames(), QFileDialog::getOpenFileNames(), QDirModel::index(), QAccessible::initialize(), QWidget::insertActions(), QTreeWidgetItem::insertChild(), QTreeWidgetItem::insertChildren(), QStandardItem::insertColumn(), QComboBox::insertItems(), QtAbstractPropertyBrowser::insertProperty(), QStandardItem::insertRow(), QtProperty::insertSubProperty(), QListView::internalDrag(), QListView::internalDrop(), Q3DockArea::invalidNextOffset(), QMenu::isEmpty(), QLibrary::isLibrary(), QDBusUtil::isValidBusName(), QDBusUtil::isValidInterfaceName(), QDBusUtil::isValidObjectPath(), QDBusUtil::isValidUniqueConnectionName(), Q3Dns::isWorking(), QTreeView::keyboardSearch(), QMessageBox::keyPressEvent(), QMenuBar::keyPressEvent(), QXmlAttributes::length(), Config::load(), QAbstractFormBuilder::loadTableWidgetExtraInfo(), QAbstractFormBuilder::loadTreeWidgetExtraInfo(), HistoryFilterModel::mapFromSource(), QAbstractItemModel::match(), QItemSelection::merge(), QProxyModel::mimeData(), QSortFilterProxyModel::mimeData(), QTreeWidget::mimeData(), QAbstractItemModel::mimeData(), MainWindow::modelFromFile(), DiagramScene::mouseReleaseEvent(), Q3DockArea::moveDockWindow(), QPatternist::MultiItemType::MultiItemType(), QAccessibleApplication::navigate(), QPatternist::CachingIterator::next(), QDBusConnection::objectRegisteredAt(), Q3FileDialog::okClicked(), Q3TextEdit::optimInsert(), DetailsDialog::orderItems(), Document::paintEvent(), Q3HttpRequestHeader::parseLine(), QHttpRequestHeader::parseLine(), QCompleter::pathFromIndex(), Q3ComboTableItem::Q3ComboTableItem(), QApplicationArgumentParser::QApplicationArgumentParser(), QTest::qCompare(), QTest::qExec(), QTreeWidgetItem::QTreeWidgetItem(), QUrl::queryItems(), QObject::receivers(), QDBusConnection::registerObject(), QAccessibleApplication::relationTo(), QDialogButtonBox::removeButton(), Q3DockArea::removeDockWindow(), Q3MainWindow::removeDockWindow(), QtAbstractPropertyBrowser::removeProperty(), QtProperty::removeSubProperty(), QFileDialog::restoreState(), QAccessibleWidget::role(), StringListModel::rowCount(), QStringListModel::rowCount(), QItemSelectionModel::rowIntersectsSelection(), QString::section(), QColumnView::selectAll(), QItemSelectionModel::selectedColumns(), QFileDialog::selectedFiles(), QListView::selectedIndexes(), QTreeView::selectedIndexes(), QTableView::selectedIndexes(), QTreeWidget::selectedItems(), QTableWidget::selectedItems(), QListWidget::selectedItems(), QTableWidget::selectedRanges(), QItemSelectionModel::selectedRows(), QItemSelectionModel::selection(), QWizard::setButtonLayout(), QColumnView::setColumnWidths(), Q3ComboTableItem::setCurrentItem(), TreeItem::setData(), QTreeWidgetItem::setData(), QApplicationArgumentParser::setDeclaredArguments(), QtEnumPropertyManager::setEnumNames(), Q3FileDialog::setFilters(), QTreeWidgetItem::setFlags(), QTreeWidget::setHeaderLabels(), QStandardItemModel::setHorizontalHeaderLabels(), QTableWidget::setHorizontalHeaderLabels(), Q3ImageDrag::setImage(), Q3Dns::setLabel(), QFileDialog::setNameFilters(), QFileSystemModel::setNameFilters(), Q3ComboTableItem::setStringList(), Q3UriDrag::setUnicodeUris(), qdesigner_internal::Layout::setup(), DetailsDialog::setupItemsTable(), TreeModel::setupModelData(), QScriptExtensionPlugin::setupPackage(), Q3UriDrag::setUris(), QTableWidget::setVerticalHeaderLabels(), QStandardItemModel::setVerticalHeaderLabels(), GLWidget::showEvent(), QStringListModel::sort(), QFileSystemModel::sort(), QFSCompletor::splitPath(), Q3Process::start(), QAbstractItemView::startDrag(), QPluginLoader::staticInstances(), QPatternist::SubsequenceFN::staticType(), QPatternist::SumFN::staticType(), QImageReader::supportedImageFormats(), QImageWriter::supportedImageFormats(), QTreeWidgetItem::takeChild(), QTreeWidgetItem::takeChildren(), TextEdit::TextEdit(), QUrl::toAce(), QApplication::topLevelAt(), QScriptContext::toString(), QPatternist::SumFN::typeCheck(), QPatternist::ElementConstructor::typeCheck(), QPatternist::FunctionCall::typeCheck(), QPatternist::ResolveURIFN::typeCheck(), QDBusConnection::unregisterObject(), QPatternist::VariableDeclaration::usedByMany(), QAccessibleWidget::userActionCount(), QTreeView::visualRegionForSelection(), QHeaderView::visualRegionForSelection(), QListView::visualRegionForSelection(), QTableView::visualRegionForSelection(), QColumnView::visualRegionForSelection(), PieView::visualRegionForSelection(), QFSFileEngine::~QFSFileEngine(), QObject::~QObject(), and QTreeWidgetItem::~QTreeWidgetItem().

{
    int c = 0;
    Node *b = reinterpret_cast<Node *>(p.begin());
    Node *i = reinterpret_cast<Node *>(p.end());
    while (i-- != b)
        if (i->t() == t)
            ++c;
    return c;
}


Generated by  Doxygen 1.6.0   Back to index