+ stationListModel->load(trueFilePath("stations:stations.qpl"));
+
+ stationListProxyModel->setSourceModel(stationListModel);
+
+ /* Types to be made accessible to QML */
+ qmlRegisterType<DataProvider>("net.cirulla.quandoparte", 1, 0, "DataProvider");
+ qmlRegisterType<Settings>("net.cirulla.quandoparte", 1, 0, "Settings");
+ qmlRegisterType<StationListProxyModel>(
+ "net.cirulla.quandoparte", 1, 0, "StationListProxyModel");
+
+ QDeclarativeContext *context = this->rootContext();
+ /* objects to be made accessible to QML */
+ context->setContextProperty("settings", Settings::instance());
+ context->setContextProperty("stationList", stationListModel);
+ context->setContextProperty("stationListProxyModel", stationListProxyModel);