12 #ifndef QmitkTableModelToQString_H__INCLUDED 13 #define QmitkTableModelToQString_H__INCLUDED 16 #include <QAbstractItemModel> 35 void SetTableModel(QAbstractItemModel *model);
36 void SetRootIndex(QModelIndex rootIndex);
41 QString GetString()
const;
42 void SetRowDelimiter(QChar lineDelimiter);
43 void SetColumnDelimiter(QChar columnDelimiter);
47 void SetIncludeHeaderData(
bool includeHeaderData);
54 QString Iterate(
const QModelIndex &index,
55 const QAbstractItemModel *model,
58 QAbstractItemModel *m_statisticsModel =
nullptr;
59 QModelIndex m_rootIndex;
60 QChar m_lineDelimiter =
'\n';
61 bool m_includeHeaderData =
false;
62 QString m_columnDelimiterWithSpace =
", ";
64 #endif // QmitkTableModelToQString_H__INCLUDED #define MITKIMAGESTATISTICSUI_EXPORT
Converts the content of the statistics model to a string.