Disable undo/redo stack

This commit is contained in:
Jeff Shillitto
2019-08-13 22:17:49 +10:00
parent 78f370ee14
commit ada13ddebd

View File

@@ -76,6 +76,11 @@ void QtHtmlReader::Open()
//draw text
QTextDocument text_document;
//disable redo/undo stack as not needed
text_document.setUndoRedoEnabled(false);
//create the HTML/CSS document
text_document.setTextWidth(width);
text_document.setDefaultStyleSheet(css.c_str());
text_document.setHtml(html.c_str());