core: fix deprecated qt syntax (#18)

This commit is contained in:
nyx 2024-12-13 16:31:49 -05:00 committed by GitHub
parent b2cdeba9a4
commit b6e8667b65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,8 @@
#include <polkitagent/polkitagent.h>
#include <print>
#include <QtCore/QString>
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();
}