5 #ifndef FABCOIN_QT_CSVMODELWRITER_H 6 #define FABCOIN_QT_CSVMODELWRITER_H 12 class QAbstractItemModel;
26 void addColumn(
const QString &title,
int column,
int role=Qt::EditRole);
35 const QAbstractItemModel *
model;
46 #endif // FABCOIN_QT_CSVMODELWRITER_H
void addColumn(const QString &title, int column, int role=Qt::EditRole)
Export a Qt table model to a CSV file.
const QAbstractItemModel * model
CSVModelWriter(const QString &filename, QObject *parent=0)
void setModel(const QAbstractItemModel *model)
bool write()
Perform export of the model to CSV.