Remove unused addImportPath
This commit is contained in:
parent
8467c6e7c6
commit
57f153055e
1 changed files with 1 additions and 1 deletions
|
@ -52,9 +52,9 @@ int main(int argc, char *argv[])
|
||||||
QObject::connect(&updater, SIGNAL(timeout()), &battery, SLOT(updateData()));
|
QObject::connect(&updater, SIGNAL(timeout()), &battery, SLOT(updateData()));
|
||||||
updater.start(15000);
|
updater.start(15000);
|
||||||
|
|
||||||
view->engine()->addImportPath("/usr/share/harbour-carbudget/qml");
|
|
||||||
view->rootContext()->setContextProperty("battery", &battery);
|
view->rootContext()->setContextProperty("battery", &battery);
|
||||||
view->rootContext()->setContextProperty("settings", &settings);
|
view->rootContext()->setContextProperty("settings", &settings);
|
||||||
|
|
||||||
view->setSource(SailfishApp::pathTo("qml/harbour-batterybuddy.qml"));
|
view->setSource(SailfishApp::pathTo("qml/harbour-batterybuddy.qml"));
|
||||||
view->showFullScreen();
|
view->showFullScreen();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue