![]() |
Code Documentation 3.5
Social Network Visualizer
|
Implements TableExport::toCSV() and TableExport::toJSON() (#226). More...
#include "table_export.h"#include <QAbstractItemModel>#include <QFile>#include <QJsonArray>#include <QJsonDocument>#include <QJsonObject>#include <QString>#include <QTextStream>
Namespaces | |
| namespace | TableExport |
| Free functions that serialise any QAbstractItemModel to CSV or JSON. | |
Functions | |
| static QString | TableExport::csvQuote (const QString &value) |
| bool | TableExport::toCSV (QAbstractItemModel *model, const QString &filePath) |
Writes model to an RFC 4180 CSV file at filePath. | |
| bool | TableExport::toJSON (QAbstractItemModel *model, const QString &filePath) |
Writes model to a JSON file at filePath. | |
Implements TableExport::toCSV() and TableExport::toJSON() (#226).