7 #ifndef WINDOW_MODEL_BASE_H 8 #define WINDOW_MODEL_BASE_H 10 #include "ExportDelimiter.h" 11 #include <QStandardItemModel> 27 QMimeData *
mimeData (
const QModelIndexList &indexes)
const;
42 int fold2dIndexes (
int row,
47 void selectionAsTable (
int &rowLow,
51 QVector<QString> &table)
const;
53 ExportDelimiter m_delimiter;
57 #endif // WINDOW_MODEL_BASE_H QString selectionAsHtml() const
Convert the selection into exportable html which is good for spreadsheets.
QString selectionAsText(ExportDelimiter delimiter) const
Convert the selection into exportable text which is good for text editors.
void setView(WindowTable &view)
Save the view so this class can access the current selection.
void setDelimiter(ExportDelimiter delimiter)
Save output delimiter.
Table view class with support for both drag-and-drop and copy-and-paste.
WindowModelBase()
Single constructor.
QMimeData * mimeData(const QModelIndexList &indexes) const
Support dragging of multiple cells.