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

QAbstractItemModel * QAbstractItemView::model (  )  const [inherited]

Returns the model that this view is presenting.

Definition at line 560 of file qabstractitemview.cpp.

Referenced by QTableWidget::cellWidget(), QColumnView::createColumn(), QColumnView::currentChanged(), QTreeWidget::dropEvent(), QListWidget::dropEvent(), QTreeWidget::dropMimeData(), QListWidget::dropMimeData(), QTableWidget::dropMimeData(), QTreeWidgetItem::executePendingSort(), QTreeWidget::findItems(), QListWidget::findItems(), QTableWidget::findItems(), QTreeWidgetItem::insertChild(), QTreeWidgetItem::insertChildren(), QTreeWidgetItem::itemChanged(), QAbstractItemView::keyPressEvent(), QTreeWidget::mimeTypes(), QColumnView::moveCursor(), QListWidgetItem::QListWidgetItem(), QTreeWidget::QTreeWidget(), QTreeWidgetItem::QTreeWidgetItem(), QTreeWidgetItemIterator::QTreeWidgetItemIterator(), QColumnView::selectAll(), QTableWidget::setCellWidget(), QTreeWidgetItem::setChildIndicatorPolicy(), QTableWidget::setCurrentCell(), QTableWidgetItem::setData(), QTreeWidgetItem::setData(), QListWidgetItem::setData(), QTableWidgetItem::setFlags(), QListWidgetItem::setFlags(), QTreeWidget::setHeaderLabels(), QTableWidget::setHorizontalHeaderLabels(), QHeaderView::setModel(), QCompleter::setPopup(), QTableWidget::setRangeSelected(), QColumnView::setRootIndex(), QTableWidget::setVerticalHeaderLabels(), QComboBox::setView(), QTableView::sizeHintForColumn(), QAbstractItemView::sizeHintForColumn(), QAbstractItemView::sizeHintForRow(), QTableView::sizeHintForRow(), QTreeWidgetItem::sortChildren(), QTreeWidget::supportedDropActions(), QTreeWidgetItem::takeChild(), QTreeWidgetItem::takeChildren(), QAccessibleHeader::text(), QColumnView::visualRegionForSelection(), QListWidgetItem::~QListWidgetItem(), QTableWidgetItem::~QTableWidgetItem(), and QTreeWidgetItem::~QTreeWidgetItem().

{
    Q_D(const QAbstractItemView);
    return (d->model == QAbstractItemModelPrivate::staticEmptyModel() ? 0 : d->model);
}


Generated by  Doxygen 1.6.0   Back to index