qCDebug(imCategory) << "Parsed positional argument as" << url;
player->setNextSource(url);
}
- TimeFormatter timeFormatter;
+ auto timeFormatter = new TimeFormatter{this};
engine->rootContext()->setContextProperty("player", player);
- engine->rootContext()->setContextProperty("timeFormatter", &timeFormatter);
+ engine->rootContext()->setContextProperty("timeFormatter", timeFormatter);
qCDebug(imCategory, "Player Added");
engine->load(QUrl(QStringLiteral("qrc:/qml/main.qml")));
qCDebug(imCategory, "QML engine loaded");