git-svn-id: svn://db.shs.com.ru/libs@472 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user