Skip to content

Commit

Permalink
Fixing QtWebEngine compilation #1357
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorka committed Jan 5, 2022
1 parent f37a44b commit 89467aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/qt/note_view_presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void NoteViewPresenter::refreshLivePreview()
view->setHtml(QString::fromStdString(html));

// IMPROVE share code between O header and N
#if !defined(_WIN32) && !defined(__APPLE__)
#if !defined(_WIN32) && !defined(__APPLE__) && !defined(MF_QT_WEB_ENGINE)
// WebView: scroll to same pct view
if(scrollbar) {
if(scrollbar->maximum()) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/qt/note_view_presenter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "note_view.h"
#include "note_view_model.h"

#if !defined(__APPLE__) && !defined(_WIN32)
#if !defined(__APPLE__) && !defined(_WIN32) && !defined(MF_QT_WEB_ENGINE)
#include <QWebFrame>
#endif

Expand Down
2 changes: 1 addition & 1 deletion app/src/qt/outline_header_view_presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void OutlineHeaderViewPresenter::refreshLivePreview()
view->setHtml(QString::fromStdString(html));

// IMPROVE share code between O header and N
#if !defined(__APPLE__) && !defined(_WIN32)
#if !defined(__APPLE__) && !defined(_WIN32) && !defined(MF_QT_WEB_ENGINE)
// WebView: scroll to same pct view
if(scrollbar) {
if(scrollbar->maximum()) {
Expand Down

0 comments on commit 89467aa

Please sign in to comment.