Fix deprecation warning
Test Plan: App still starts Reviewers: #kde_connect, sredman Reviewed By: #kde_connect, sredman Subscribers: sredman, kdeconnect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D16626
This commit is contained in:
parent
a685a4910e
commit
ae53c9c0bf
1 changed files with 3 additions and 6 deletions
|
@ -21,9 +21,10 @@
|
|||
#include <QApplication>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QCommandLineParser>
|
||||
#include <KDeclarative/KDeclarative>
|
||||
#include <KAboutData>
|
||||
#include <KLocalizedString>
|
||||
#include <KLocalizedContext>
|
||||
#include <QtQml>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
@ -42,11 +43,7 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
KDeclarative::KDeclarative kdeclarative;
|
||||
kdeclarative.setDeclarativeEngine(&engine);
|
||||
kdeclarative.setupBindings();
|
||||
|
||||
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
|
||||
engine.load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
|
||||
|
||||
return app.exec();
|
||||
|
|
Loading…
Reference in a new issue