Remove unused addImportPath

This commit is contained in:
Matti Viljanen 2019-01-05 23:41:33 +02:00
parent 8467c6e7c6
commit 57f153055e

View file

@ -52,9 +52,9 @@ int main(int argc, char *argv[])
QObject::connect(&updater, SIGNAL(timeout()), &battery, SLOT(updateData()));
updater.start(15000);
view->engine()->addImportPath("/usr/share/harbour-carbudget/qml");
view->rootContext()->setContextProperty("battery", &battery);
view->rootContext()->setContextProperty("settings", &settings);
view->setSource(SailfishApp::pathTo("qml/harbour-batterybuddy.qml"));
view->showFullScreen();