summaryrefslogtreecommitdiff
path: root/src/yuzu/applets/web_browser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/applets/web_browser.h')
-rw-r--r--src/yuzu/applets/web_browser.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/yuzu/applets/web_browser.h b/src/yuzu/applets/web_browser.h
index 74f6698be..bba273767 100644
--- a/src/yuzu/applets/web_browser.h
+++ b/src/yuzu/applets/web_browser.h
@@ -6,22 +6,30 @@
#include <functional>
#include <QObject>
+
+#ifdef YUZU_USE_QT_WEB_ENGINE
#include <QWebEngineView>
+#endif
+
#include "core/frontend/applets/web_browser.h"
class GMainWindow;
+#ifdef YUZU_USE_QT_WEB_ENGINE
+
QString GetNXShimInjectionScript();
class NXInputWebEngineView : public QWebEngineView {
public:
- NXInputWebEngineView(QWidget* parent = nullptr);
+ explicit NXInputWebEngineView(QWidget* parent = nullptr);
protected:
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
};
+#endif
+
class QtWebBrowser final : public QObject, public Core::Frontend::WebBrowserApplet {
Q_OBJECT