mirror of
https://github.com/hyprwm/hyprpolkitagent.git
synced 2024-12-25 08:09:50 +01:00
core: fix deprecated qt syntax (#18)
This commit is contained in:
parent
b2cdeba9a4
commit
b6e8667b65
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue