Changeset View
Changeset View
Standalone View
Standalone View
mobile/app/main.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 60 | #endif | |||
---|---|---|---|---|---|
64 | paths[QStringLiteral("desktop")] = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); | 64 | paths[QStringLiteral("desktop")] = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation); | ||
65 | paths[QStringLiteral("documents")] = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); | 65 | paths[QStringLiteral("documents")] = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation); | ||
66 | paths[QStringLiteral("music")] = QStandardPaths::writableLocation(QStandardPaths::MusicLocation); | 66 | paths[QStringLiteral("music")] = QStandardPaths::writableLocation(QStandardPaths::MusicLocation); | ||
67 | paths[QStringLiteral("movies")] = QStandardPaths::writableLocation(QStandardPaths::MoviesLocation); | 67 | paths[QStringLiteral("movies")] = QStandardPaths::writableLocation(QStandardPaths::MoviesLocation); | ||
68 | paths[QStringLiteral("pictures")] = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); | 68 | paths[QStringLiteral("pictures")] = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); | ||
69 | paths[QStringLiteral("home")] = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); | 69 | paths[QStringLiteral("home")] = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); | ||
70 | engine.rootContext()->setContextProperty(QStringLiteral("userPaths"), paths); | 70 | engine.rootContext()->setContextProperty(QStringLiteral("userPaths"), paths); | ||
71 | 71 | | |||
72 | engine.setBaseUrl(QUrl("qrc:/package/contents/ui/")); | 72 | engine.setBaseUrl(QUrl(QStringLiteral("qrc:/package/contents/ui/"))); | ||
73 | engine.load(QUrl("qrc:/package/contents/ui/main.qml")); | 73 | engine.load(QUrl(QStringLiteral("qrc:/package/contents/ui/main.qml"))); | ||
74 | return app.exec(); | 74 | return app.exec(); | ||
75 | } | 75 | } |