Windows: fix reset of QTextBrowser snippets windows, switch to actually using webkit...
This commit is contained in:
parent
450867c45b
commit
800796bb17
@ -8,6 +8,7 @@ TARGET = recoll
|
||||
QT += webkit
|
||||
|
||||
DEFINES += BUILDING_RECOLL
|
||||
DEFINES += USING_WEBKIT
|
||||
DEFINES -= UNICODE
|
||||
DEFINES -= _UNICODE
|
||||
DEFINES += _MBCS
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user