git-svn-id: svn://db.shs.com.ru/libs@472 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2018-12-15 21:47:12 +00:00
parent 5ab61108b9
commit 907e553a4a

View File

@@ -157,6 +157,8 @@ void QCodeEdit::setDocument(QTextDocument * doc) {
document()->setProperty("_cursor", QVariant::fromValue(textCursor()));
document()->setProperty("_vpos", textEdit()->verticalScrollBar()->value());
}
ui->textCode->setEnabled(doc);
ui->textLines->setEnabled(doc);
documentUnset();
if (!doc) {
ui->textCode->setDocument(0);