mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #8477 from Docteh/less_global
tweak API usage in qt_web_browser.cpp
This commit is contained in:
commit
eb4ce48b65
|
@ -52,8 +52,8 @@ QtNXWebEngineView::QtNXWebEngineView(QWidget* parent, Core::System& system,
|
||||||
: QWebEngineView(parent), input_subsystem{input_subsystem_},
|
: QWebEngineView(parent), input_subsystem{input_subsystem_},
|
||||||
url_interceptor(std::make_unique<UrlRequestInterceptor>()),
|
url_interceptor(std::make_unique<UrlRequestInterceptor>()),
|
||||||
input_interpreter(std::make_unique<InputInterpreter>(system)),
|
input_interpreter(std::make_unique<InputInterpreter>(system)),
|
||||||
default_profile{QWebEngineProfile::defaultProfile()},
|
default_profile{QWebEngineProfile::defaultProfile()}, global_settings{
|
||||||
global_settings{QWebEngineSettings::globalSettings()} {
|
default_profile->settings()} {
|
||||||
default_profile->setPersistentStoragePath(QString::fromStdString(Common::FS::PathToUTF8String(
|
default_profile->setPersistentStoragePath(QString::fromStdString(Common::FS::PathToUTF8String(
|
||||||
Common::FS::GetYuzuPath(Common::FS::YuzuPath::YuzuDir) / "qtwebengine")));
|
Common::FS::GetYuzuPath(Common::FS::YuzuPath::YuzuDir) / "qtwebengine")));
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ QtNXWebEngineView::QtNXWebEngineView(QWidget* parent, Core::System& system,
|
||||||
default_profile->scripts()->insert(gamepad);
|
default_profile->scripts()->insert(gamepad);
|
||||||
default_profile->scripts()->insert(window_nx);
|
default_profile->scripts()->insert(window_nx);
|
||||||
|
|
||||||
default_profile->setRequestInterceptor(url_interceptor.get());
|
default_profile->setUrlRequestInterceptor(url_interceptor.get());
|
||||||
|
|
||||||
global_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
|
global_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
|
||||||
global_settings->setAttribute(QWebEngineSettings::FullScreenSupportEnabled, true);
|
global_settings->setAttribute(QWebEngineSettings::FullScreenSupportEnabled, true);
|
||||||
|
|
Loading…
Reference in a new issue