Go to the documentation of this file.
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
QString selectionAsHtml() const
Convert the selection into exportable html which is good for spreadsheets.
virtual ~WindowModelBase()
Table view class with support for both drag-and-drop and copy-and-paste.
void setView(WindowTable &view)
Save the view so this class can access the current selection.
QString selectionAsText(ExportDelimiter delimiter) const
Convert the selection into exportable text which is good for text editors.
QMimeData * mimeData(const QModelIndexList &indexes) const
Support dragging of multiple cells.
ExportDelimiter
Delimiter values that may or may not be overridden by DOCUMENT_SERIALIZE_EXPORT_DELIMITER_OVERRIDE_CS...
WindowModelBase()
Single constructor.
void setDelimiter(ExportDelimiter delimiter)
Save output delimiter.