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

template<typename T>
void QList< T >::append ( const T &  value ) [inherited]

Inserts value at the end of the list.

Example: doc/src/snippets/code/src_corelib_tools_qlistdata.cpp 6

This is the same as list.insert(size(), value).

This operation is typically very fast ({constant time}), because QList preallocates extra space on both sides of its internal buffer to allow for fast growth at both ends of the list.

See also:
operator<<(), prepend(), insert()

Definition at line 422 of file qlist.h.

Referenced by QItemSelectionModelPrivate::_q_columnsAboutToBeInserted(), QFileSystemModelPrivate::_q_directoryChanged(), QFileSystemModelPrivate::_q_fileSystemChanged(), QItemSelectionModelPrivate::_q_layoutAboutToBeChanged(), QItemSelectionModelPrivate::_q_rowsAboutToBeInserted(), QMultiInputContext::actions(), Q3ActionGroup::add(), Q3Process::addArgument(), QApplicationArgumentParser::addArgument(), DiagramItem::addArrow(), Environment::addCanvas(), Phonon::MediaNodePrivate::addDestructionHandler(), Q3MimeSourceFactory::addFactory(), MainWindow::addFiles(), qdesigner_internal::FormWindowManager::addFormWindow(), FlowLayout::addItem(), QPatternist::GenericDynamicContext::addNodeModel(), Q3Wizard::addPage(), QFormBuilder::addPluginPath(), qdesigner_internal::FormWindow::addResourceFile(), Q3ActionGroup::addSeparator(), Q3ActionGroup::addTo(), Q3Action::addTo(), QUrlModel::addUrls(), QFileSystemModelPrivate::addVisibleFiles(), QApplication::alert(), QWebSecurityOrigin::allOrigins(), QHttpHeader::allValues(), QObjectXmlModel::ancestors(), QSqlIndex::append(), QPatternist::FunctionSignature::appendArgument(), TreeItem::appendChild(), ApplicationsTab::ApplicationsTab(), QApplicationArgumentParserPrivate::argumentsFromLocal(), qdesigner_internal::DesignerPropertyManager::attributes(), Phonon::BackendCapabilities::availableAudioCaptureDevices(), Phonon::BackendCapabilities::availableAudioEffects(), Phonon::BackendCapabilities::availableAudioOutputDevices(), QWebHistory::backItems(), QWindowSurface::buffer(), QApplicationArgumentParserPrivate::builtinArguments(), QDialogButtonBox::buttons(), QRegExp::capturedTexts(), QWorkspace::cascade(), DocuParser320::characters(), DocuParser310::characters(), QPatternist::CallTargetDescription::checkCallsiteCircularity(), QPatternist::checkVariableCircularity(), QWebFrame::childFrames(), QColumnViewPrivate::closeColumns(), QColumnView::columnWidths(), QScriptDebuggerConsoleCommandManager::commandsInGroup(), QApplication::commitData(), QScriptDebuggerConsoleCommandManager::completions(), QPatternist::Expression::constantPropagate(), QPatternist::Validate::create(), QColumnViewPrivate::createColumn(), SpreadSheetDelegate::createEditor(), QGraphicsScene::createItemGroup(), QScriptDebuggerConsolePrivate::createJob(), PluginPage::createPlugin(), TestNetworkManager::createRequest(), QPatternist::createRootExpression(), SortingBox::createShapeItem(), TestPage::createWindow(), QScriptDebuggerLocalsModel::data(), QWebSecurityOrigin::databases(), QApplicationPrivate::dispatchEnterLeave(), Q3MainWindow::dockWindows(), QScriptDebuggerBackend::doPendingEvaluate(), PuzzleWidget::dropEvent(), QTreeWidget::dropEvent(), QTableWidget::dropEvent(), QListWidget::dropEvent(), QItemSelectionModel::emitSelectionChanged(), QphHandler::endElement(), QQueue< T >::enqueue(), QPatternist::CardinalityVerifier::evaluateSequence(), QPatternist::Path::evaluateSequence(), QXmlQuery::evaluateTo(), QScriptDebuggerCodeView::event(), QODBCResult::exec(), QDB2Result::exec(), QScriptDebuggerCommandExecutor::execute(), QPatternist::CombineNodes::expectedOperandTypes(), QPatternist::ElementConstructor::expectedOperandTypes(), QPatternist::ReturnOrderBy::expectedOperandTypes(), QPatternist::SimpleContentConstructor::expectedOperandTypes(), QPatternist::TemplateInvoker::expectedOperandTypes(), QPatternist::TreatAs::expectedOperandTypes(), QPatternist::CollationChecker::expectedOperandTypes(), QPatternist::Path::expectedOperandTypes(), QPatternist::Atomizer::expectedOperandTypes(), QPatternist::CardinalityVerifier::expectedOperandTypes(), QPatternist::NodeComparison::expectedOperandTypes(), QPatternist::OrderBy::expectedOperandTypes(), QPatternist::QNameConstructor::expectedOperandTypes(), QPatternist::AttributeNameValidator::expectedOperandTypes(), QPatternist::CopyOf::expectedOperandTypes(), QPatternist::DynamicContextStore::expectedOperandTypes(), QPatternist::StaticCompatibilityStore::expectedOperandTypes(), QPatternist::XSLTSimpleContentConstructor::expectedOperandTypes(), QPatternist::DocumentConstructor::expectedOperandTypes(), QPatternist::StaticBaseURIStore::expectedOperandTypes(), QPatternist::InstanceOf::expectedOperandTypes(), QPatternist::ProcessingInstructionConstructor::expectedOperandTypes(), QPatternist::QuantifiedExpression::expectedOperandTypes(), QPatternist::RangeExpression::expectedOperandTypes(), QPatternist::NCNameConstructor::expectedOperandTypes(), QPatternist::ComputedNamespaceConstructor::expectedOperandTypes(), QPatternist::ExpressionSequence::expectedOperandTypes(), QPatternist::AxisStep::expectedOperandTypes(), QPatternist::CommentConstructor::expectedOperandTypes(), QPatternist::NamespaceConstructor::expectedOperandTypes(), QPatternist::ForClause::expectedOperandTypes(), QPatternist::TruthPredicate::expectedOperandTypes(), QPatternist::AttributeConstructor::expectedOperandTypes(), QPatternist::TextNodeConstructor::expectedOperandTypes(), QPatternist::EBVExtractor::expectedOperandTypes(), QPatternist::ItemVerifier::expectedOperandTypes(), QPatternist::AndExpression::expectedOperandTypes(), QPatternist::CurrentItemStore::expectedOperandTypes(), QPatternist::LetClause::expectedOperandTypes(), QPatternist::UserFunctionCallsite::expectedOperandTypes(), QPatternist::FirstItemPredicate::expectedOperandTypes(), QPatternist::IfThenClause::expectedOperandTypes(), QPatternist::ArithmeticExpression::expectedOperandTypes(), QPatternist::GenericPredicate::expectedOperandTypes(), QPatternist::NodeSortExpression::expectedOperandTypes(), Phonon::Gstreamer::GstHelper::extractProperties(), QFontDatabase::families(), QZipReader::fileInfoList(), QHelpEngineCore::files(), IndexListModel::filter(), QHelpIndexModel::filter(), QTreeWidget::findItems(), QListWidget::findItems(), QTableWidget::findItems(), QStandardItemModel::findItems(), QDropEvent::format(), QMimeDataWrapper::format(), QDragMime::formats(), QMimeSourceWrapper::formats(), QWebHistory::forwardItems(), QScriptDebuggerAgent::functionEntry(), Tree::generateIndexSection(), CodeEditor::highlightCurrentLine(), QItemSelectionRange::indexes(), QPatternist::OptimizationPasses::Coordinator::init(), QPictureIO::inputFormats(), QLineEdit::inputMethodEvent(), QGraphicsWidget::insertAction(), QWidget::insertAction(), QTreeWidgetItem::insertChildren(), QTreeModel::insertColumns(), QComboBox::insertItems(), TableModel::insertRows(), QFont::insertSubstitution(), QFont::insertSubstitutions(), QWebHistory::items(), QAbstractXmlNodeModel::iterate(), QKeySequence::keyBindings(), QDB2DriverPlugin::keys(), QTDSDriverPlugin::keys(), QHash< Key, T >::keys(), QMap< Key, T >::keys(), QHttpHeader::keys(), QOCIDriverPlugin::keys(), QODBCDriverPlugin::keys(), QPSQLDriverPlugin::keys(), QUrlModel::layoutChanged(), Q3DockAreaLayout::layoutItems(), QCoreApplication::libraryPaths(), Ui3Reader::loadColorGroup(), Window::loadImage(), qdesigner_internal::FormWindow::manageWidget(), QAbstractItemModel::match(), CppCodeParser::matchDocsAndStuff(), QItemSelection::merge(), QProxyModel::mimeData(), QUrlModel::mimeData(), UrlIconLabel::mouseMoveEvent(), TabBar::mouseMoveEvent(), Q3DockArea::moveDockWindow(), Phonon::DS9::Backend::objectDescriptionIndexes(), Phonon::WaveOut::Backend::objectDescriptionIndexes(), qdesigner_internal::MetaDataBase::objects(), QAssistantClient::openAssistant(), QPatternist::TripleContainer::operands(), QPatternist::SingleContainer::operands(), QPatternist::PairContainer::operands(), QPatternist::OperandsIterator::OperandsIterator(), Window::operationChanged(), QList< T >::operator+=(), QList< T >::operator<<(), QDBusMessage::operator<<(), Q3ListViewItemIterator::operator=(), QList< T >::operator>>(), Q3TextEdit::optimCheckLimit(), DetailsDialog::orderItems(), QPictureIO::outputFormats(), QGraphicsSimpleTextItem::paint(), Phonon::DS9::Effect::parameters(), QHttpHeader::parse(), Q3HttpHeader::parse(), DocParser::parse(), QAbstractItemModel::persistentIndexList(), QFontDatabase::pointSizes(), QXmlNamespaceSupport::prefixes(), QList< T >::push_back(), Q3ListViewItemIterator::Q3ListViewItemIterator(), QHelpDataContentItem::QHelpDataContentItem(), QTreeWidgetItemIterator::QTreeWidgetItemIterator(), StationQuery::query(), QHelpSearchQueryWidget::query(), TimeQuery::queryInternal(), QUiLoader::QUiLoader(), QUndoCommand::QUndoCommand(), Q3IconView::rebuildContainers(), qdesigner_internal::ReparentWidgetCommand::redo(), QHelpEngineCore::registeredDocumentations(), QFileSystemModel::remove(), QSidebar::removeEntry(), Q3ListView::repaintItem(), QHeaderViewPrivate::resizeSections(), HistoryTreeModel::rowCount(), qt::fulltextsearch::clucene::QHelpSearchIndexWriter::run(), qt::fulltextsearch::std::QHelpSearchIndexReader::run(), qt::fulltextsearch::std::QHelpSearchIndexWriter::run(), QHelpIndexProvider::run(), Q3SVGPaintEnginePrivate::saveAttributes(), QSplitter::saveState(), Q3ListBoxExtraInfo::saveWidgetExtraInfo(), Q3IconViewExtraInfo::saveWidgetExtraInfo(), Q3ListViewExtraInfo::saveWidgetExtraInfo(), Q3WizardExtraInfo::saveWidgetExtraInfo(), Q3TableExtraInfo::saveWidgetExtraInfo(), QScriptDebuggerPrivate::scheduleJob(), QScriptContext::scopeChain(), QColumnView::selectAll(), QItemSelectionModel::selectedColumns(), QFileDialog::selectedFiles(), QTreeView::selectedIndexes(), QListView::selectedIndexes(), QTableView::selectedIndexes(), QTreeWidget::selectedItems(), QTableWidget::selectedItems(), QListWidget::selectedItems(), QTableWidget::selectedRanges(), QItemSelectionModel::selectedRows(), QSqlRelationalTableModel::selectStatement(), Q3DockArea::setAcceptDockWindow(), QApplication::setActiveWindow(), qdesigner_internal::DesignerPropertyManager::setAttribute(), QTreeModel::setColumnCount(), QTreeWidgetItem::setData(), Q3UriDrag::setFileNames(), Q3Dns::setLabel(), QFileDialog::setNameFilters(), Q3ListView::setOpen(), QTableView::setSelection(), PieView::setSelection(), QTableViewPrivate::setSpan(), QTextOption::setTabArray(), QTextBlockFormat::setTabPositions(), Q3UriDrag::setUnicodeUris(), Window::setupShapes(), QMimeData::setUrls(), QSidebar::showContextMenu(), View::showInformation(), MainWindow::showList(), QSplitter::sizes(), QFontDatabase::smoothSizes(), QTableModel::sort(), QListModel::sort(), QStringListModel::sort(), QFileSystemModel::sort(), QString::split(), QItemSelection::split(), QByteArray::split(), QFSCompletor::splitPath(), NetworkAccessManager::sslErrors(), DocuParser320::startElement(), DocuParser310::startElement(), QPluginLoader::staticInstances(), QFontDatabase::styles(), QFont::substitutions(), QTextOption::tabArray(), TableModel::TableModel(), QMYSQLDriver::tables(), QSQLiteDriver::tables(), QSQLite2Driver::tables(), QDB2Driver::tables(), QOCIDriver::tables(), QPSQLDriver::tables(), QTDSDriver::tables(), QODBCDriver::tables(), QTextBlockFormat::tabPositions(), QStandardItem::takeColumn(), QStandardItem::takeRow(), TicTacToeTaskMenu::taskActions(), QPatternist::TemplateInvoker::TemplateInvoker(), QVector< T >::toList(), QAbstractXmlForwardIterator< T >::toList(), Q3MainWindow::toolBars(), QScriptDebuggerPrivate::toolTip(), QApplication::topLevelWidgets(), Phonon::ObjectDescriptionModelData::tupleIndexOrder(), QPatternist::FunctionCall::typeCheck(), QPatternist::ResolveURIFN::typeCheck(), QPatternist::DocumentFN::typeCheck(), QHash< Key, T >::uniqueKeys(), QMap< Key, T >::uniqueKeys(), Q3IconView::updateItemContainer(), QFontDialogPrivate::updateSizes(), QMimeData::urls(), QUrlModel::urls(), FilterPage::validatePage(), QHash< Key, T >::values(), QMap< Key, T >::values(), QApplicationArgumentParser::values(), QPatternist::TypeChecker::verifyType(), QAbstractScrollAreaScrollBarContainer::widgets(), QWorkspace::windowList(), QtIcoHandler::write(), QFontDatabase::writingSystems(), and xslt20Factory().

{
    detach();
    if (QTypeInfo<T>::isLarge || QTypeInfo<T>::isStatic) {
        node_construct(reinterpret_cast<Node *>(p.append()), t);
    } else {
        const T cpy(t);
        node_construct(reinterpret_cast<Node *>(p.append()), cpy);
    }
}

Generated by  Doxygen 1.6.0   Back to index