Skip to content

Commit b6e8667

Browse files
authored
core: fix deprecated qt syntax (#18)
1 parent b2cdeba commit b6e8667

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/Agent.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include <polkitagent/polkitagent.h>
44
#include <print>
5+
#include <QtCore/QString>
6+
using namespace Qt::Literals::StringLiterals;
57

68
#include "Agent.hpp"
79
#include "../QMLIntegration.hpp"
@@ -64,7 +66,7 @@ void CAgent::initAuthPrompt() {
6466

6567
authState.qmlEngine = new QQmlApplicationEngine();
6668
authState.qmlEngine->rootContext()->setContextProperty("hpa", authState.qmlIntegration);
67-
authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_qs});
69+
authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_s});
6870

6971
authState.qmlIntegration->focusField();
7072
}

0 commit comments

Comments
 (0)