From 4bedd006ecccfdf2dece34895cec6812d3ba12fc Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 18 Aug 2023 22:21:38 -0400 Subject: [PATCH] Initialize QtWebEngine properly --- CMakeLists.txt | 3 ++- launcher/CMakeLists.txt | 1 + launcher/src/main.cpp | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53dc554..90ba341 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,8 @@ find_package(Qt5 ${QT_MIN_VERSION} NO_MODULE REQUIRED COMPONENTS Core Widgets Network - QuickControls2) + QuickControls2 + WebEngine) find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 I18n Config CoreAddons) find_package(PkgConfig REQUIRED) diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index 984594d..f92fd39 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -49,6 +49,7 @@ target_link_libraries(astra PRIVATE Qt5::Widgets Qt5::Quick Qt5::QuickControls2 + Qt5::WebEngine KF5::Kirigami2 KF5::I18n KF5::ConfigCore diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp index 461f941..7f61ec3 100755 --- a/launcher/src/main.cpp +++ b/launcher/src/main.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include "astra-version.h" #include "gameinstaller.h" @@ -18,6 +19,8 @@ int main(int argc, char *argv[]) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QtWebEngine::initialize(); + QApplication app(argc, argv); // Default to org.kde.desktop style unless the user forces another style if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {