Commit 9c4345ad authored by Volker Krause's avatar Volker Krause
Browse files

Add access to the thumbnail image asset

Needed to display generic passes, as well as certain types of event
tickets.
parent 7e722afd
Pipeline #22730 passed with stage
in 1 minute and 46 seconds
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.14.40")
set(PIM_VERSION "5.14.41")
project(KPkPass VERSION ${PIM_VERSION})
set(KF5_MIN_VERSION "5.70.0")
......
......@@ -378,11 +378,16 @@ QImage Pass::background(unsigned int devicePixelRatio) const
return image(QStringLiteral("background"), devicePixelRatio);
}
QImage KPkPass::Pass::footer(unsigned int devicePixelRatio) const
QImage Pass::footer(unsigned int devicePixelRatio) const
{
return image(QStringLiteral("footer"), devicePixelRatio);
}
QImage Pass::thumbnail(unsigned int devicePixelRatio) const
{
return image(QStringLiteral("thumbnail"), devicePixelRatio);
}
QString Pass::authenticationToken() const
{
return d->passObj.value(QLatin1String("authenticationToken")).toString();
......
......@@ -131,6 +131,8 @@ public:
QImage background(unsigned int devicePixelRatio = 1) const;
/** Returns the footer image if present. */
QImage footer(unsigned int devicePixelRatio = 1) const;
/** Returns the thumbnail image if present. */
QImage thumbnail(unsigned int devicePixelRatio = 1) const;
// web service keys
Q_REQUIRED_RESULT QString authenticationToken() const;
......
Markdown is supported
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