Changeset View
Changeset View
Standalone View
Standalone View
src/main.cpp
- This file was moved from src/upnpControl.cpp.
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Line(s) | 237 | #if defined KF5Declarative_FOUND && KF5Declarative_FOUND | |||
---|---|---|---|---|---|
238 | KDeclarative::KDeclarative decl; | 238 | KDeclarative::KDeclarative decl; | ||
239 | decl.setDeclarativeEngine(&engine); | 239 | decl.setDeclarativeEngine(&engine); | ||
240 | decl.setupBindings(); | 240 | decl.setupBindings(); | ||
241 | #endif | 241 | #endif | ||
242 | 242 | | |||
243 | engine.rootContext()->setContextObject(new KLocalizedContext(&engine)); | 243 | engine.rootContext()->setContextObject(new KLocalizedContext(&engine)); | ||
244 | engine.rootContext()->setContextProperty(QStringLiteral("elisa"), &myApp); | 244 | engine.rootContext()->setContextProperty(QStringLiteral("elisa"), &myApp); | ||
245 | 245 | | |||
246 | engine.load(QUrl(QStringLiteral("qrc:/MediaServer.qml"))); | 246 | engine.load(QUrl(QStringLiteral("qrc:/ElisaMainWindow.qml"))); | ||
247 | 247 | | |||
248 | return app.exec(); | 248 | return app.exec(); | ||
249 | } | 249 | } |