Commit 1876a894 authored by Volker Krause's avatar Volker Krause
Browse files

Remove unnecessary QML glue code

parent e5e72dd7
......@@ -60,7 +60,7 @@ Kirigami.ScrollablePage {
Component {
id: pkpassComponent
App.PkPassPage {
pass: PkPassManager.passObject(passId)
pass: PkPassManager.pass(passId)
}
}
......
......@@ -76,11 +76,6 @@ KPkPass::Pass* PkPassManager::pass(const QString& passId)
return file;
}
QObject* PkPassManager::passObject(const QString& passId)
{
return pass(passId);
}
QString PkPassManager::passId(const QVariant &reservation) const
{
if (!JsonLd::canConvert<Reservation>(reservation)) {
......@@ -248,3 +243,5 @@ QByteArray PkPassManager::rawData(const QString &passId) const
}
return f.readAll();
}
#include "moc_pkpassmanager.cpp"
......@@ -25,9 +25,8 @@ public:
QVector<QString> passes() const;
KPkPass::Pass* pass(const QString &passId);
Q_INVOKABLE KPkPass::Pass* pass(const QString &passId);
Q_INVOKABLE bool hasPass(const QString &passId) const;
Q_INVOKABLE QObject* passObject(const QString &passId);
Q_INVOKABLE QString passId(const QVariant &reservation) const;
/** Import pass from a local @p url, returns the pass id if successful. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment