7 #ifndef WINDOW_MODEL_BASE_H 8 #define WINDOW_MODEL_BASE_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;
57 #endif // WINDOW_MODEL_BASE_H virtual ~WindowModelBase()
ExportDelimiter
Delimiter values that may or may not be overridden by DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CS...
QMimeData * mimeData(const QModelIndexList &indexes) const
Support dragging of multiple cells.
QString selectionAsText(ExportDelimiter delimiter) const
Convert the selection into exportable text which is good for text editors.
QString selectionAsHtml() const
Convert the selection into exportable html which is good for spreadsheets.
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.