OutputFormatter: De-virtualize the clear() function

... and make it also clear the text edit.

Change-Id: Ifd073167b8afc27f3adafca1bdaf95316be7fdaa
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-03-18 09:53:07 +01:00
parent 438195ae83
commit f4473a6da8
4 changed files with 3 additions and 5 deletions

View File

@@ -147,6 +147,7 @@ void OutputFormatter::handleLink(const QString &href)
void OutputFormatter::clear()
{
d->prependCarriageReturn = false;
plainTextEdit()->clear();
}
void OutputFormatter::setBoldFontEnabled(bool enabled)