From b6e8667b65e7cbcb8ce84809e2331416919c9691 Mon Sep 17 00:00:00 2001 From: nyx Date: Fri, 13 Dec 2024 16:31:49 -0500 Subject: [PATCH] core: fix deprecated qt syntax (#18) --- src/core/Agent.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Agent.cpp b/src/core/Agent.cpp index c9a7825..f3c579b 100644 --- a/src/core/Agent.cpp +++ b/src/core/Agent.cpp @@ -2,6 +2,8 @@ #include #include +#include +using namespace Qt::Literals::StringLiterals; #include "Agent.hpp" #include "../QMLIntegration.hpp" @@ -64,7 +66,7 @@ void CAgent::initAuthPrompt() { authState.qmlEngine = new QQmlApplicationEngine(); authState.qmlEngine->rootContext()->setContextProperty("hpa", authState.qmlIntegration); - authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_qs}); + authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_s}); authState.qmlIntegration->focusField(); }