| 164 | } |
| 165 | |
| 166 | void TextDocumentModel::appendRow(QStandardItem *parent, QStandardItem *item, |
| 167 | const QTextFormat &format, const QRectF &boundingBox) |
| 168 | { |
| 169 | item->setData(QVariant::fromValue(format), FormatRole); |
| 170 | item->setData(boundingBox, BoundingBoxRole); |
| 171 | item->setEditable(false); |
| 172 | parent->appendRow(QList<QStandardItem *>() << item << formatItem(format)); |
| 173 | } |