4#ifndef QVTKTableModelAdapterTestClass_h 
    5#define QVTKTableModelAdapterTestClass_h 
   15#include <QAbstractTableModel> 
   26  int rowCount(
const QModelIndex& parent = QModelIndex()) 
const override;
 
   27  int columnCount(
const QModelIndex& parent = QModelIndex()) 
const override;
 
   29  bool insertRows(
int row, 
int count, 
const QModelIndex& parent = QModelIndex()) 
override;
 
   30  bool removeRows(
int row, 
int count, 
const QModelIndex& parent = QModelIndex()) 
override;
 
   32  bool insertColumns(
int column, 
int count, 
const QModelIndex& parent = QModelIndex()) 
override;
 
   33  bool removeColumns(
int column, 
int count, 
const QModelIndex& parent = QModelIndex()) 
override;
 
   35  QVariant 
data(
const QModelIndex& index, 
int role) 
const override;
 
   36  bool setData(
const QModelIndex& index, 
const QVariant& value, 
int role) 
override;
 
   37  QVariant 
headerData(
int section, Qt::Orientation orientation, 
int role) 
const override;
 
Class required by TestQVTKTableModelAdapter to run Qt tests involving event loop.
 
QVTKTableModelAdapter * TargetAdapter
 
QVTKTableModelAdapterTestClass(QObject *parent=nullptr)
 
int rowCount(const QModelIndex &parent=QModelIndex()) const override
 
QVariant data(const QModelIndex &index, int role) const override
 
void testRowRemoval(int row, int n)
 
bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex()) override
 
void testColumnRemoval(int column, int n)
 
void testColumnInsertion(int column, const QStringList &names)
 
int columnCount(const QModelIndex &parent=QModelIndex()) const override
 
QVector< QVector< double > > ColumnData
 
void testInsertRemoveColumns()
 
void testRowInsertion(int row, int n)
 
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
 
bool removeColumns(int column, int count, const QModelIndex &parent=QModelIndex()) override
 
void testInsertRemoveRows()
 
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex()) override
 
bool setData(const QModelIndex &index, const QVariant &value, int role) override
 
bool insertColumns(int column, int count, const QModelIndex &parent=QModelIndex()) override
 
void testChangeHeader(int column, const QString &name)
 
An adapter to create a vtkTable from an QAbstractItemModel.