| 49 | }; |
| 50 | |
| 51 | class TextLineData |
| 52 | { |
| 53 | public: |
| 54 | enum TextLineType { |
| 55 | TextLine, |
| 56 | Separator, |
| 57 | Invalid |
| 58 | }; |
| 59 | TextLineData() = default; |
| 60 | TextLineData(const QString &txt) |
| 61 | : text(txt), textLineType(TextLine) {} |
| 62 | TextLineData(TextLineType t) |
| 63 | : textLineType(t) {} |
| 64 | QString text; |
| 65 | /* |
| 66 | * <start position, end position> |
| 67 | * <-1, n> means this is a continuation from the previous line |
| 68 | * <n, -1> means this will be continued in the next line |
| 69 | * <-1, -1> the whole line is a continuation (from the previous line to the next line) |
| 70 | */ |
| 71 | QMap<int, int> changedPositions; // counting from the beginning of the line |
| 72 | TextLineType textLineType = Invalid; |
| 73 | }; |
| 74 | |
| 75 | class RowData |
| 76 | { |
no outgoing calls
no test coverage detected