Windows: fix reset of QTextBrowser snippets windows, switch to actually using webkit...

This commit is contained in:
Jean-Francois Dockes 2020-03-04 10:36:59 +01:00
parent 450867c45b
commit 800796bb17
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ TARGET = recoll
QT += webkit
DEFINES += BUILDING_RECOLL
DEFINES += USING_WEBKIT
DEFINES -= UNICODE
DEFINES -= _UNICODE
DEFINES += _MBCS

View File

@ -257,6 +257,9 @@ void SnippetsW::onSetDoc(Rcl::Doc doc, std::shared_ptr<DocSequence> source)
#if defined(USING_WEBKIT) || defined(USING_WEBENGINE)
browser->setHtml(QString::fromUtf8(oss.str().c_str()));
#else
browser->clear();
browser->append(".");
browser->clear();
browser->insertHtml(QString::fromUtf8(oss.str().c_str()));
browser->moveCursor (QTextCursor::Start);
browser->ensureCursorVisible();