// public QVariant headerData(int section, Qt::Orientation orientation, int role) const void tst_QAbstractProxyModel::headerData() { QFETCH(int, section); QFETCH(Qt::Orientation, orientation); QFETCH(Qt::ItemDataRole, role); QFETCH(QVariant, headerData); SubQAbstractProxyModel model; QCOMPARE(model.headerData(section, orientation, role), headerData); }
void tst_QAbstractProxyModel::qabstractproxymodel() { SubQAbstractProxyModel model; model.data(QModelIndex()); model.flags(QModelIndex()); model.headerData(0, Qt::Vertical, 0); model.itemData(QModelIndex()); model.mapFromSource(QModelIndex()); model.mapSelectionFromSource(QItemSelection()); model.mapSelectionToSource(QItemSelection()); model.mapToSource(QModelIndex()); model.revert(); model.setSourceModel(0); QCOMPARE(model.sourceModel(), (QAbstractItemModel*)0); model.submit(); }