Commit fe916432 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Fix Qt 6 builds

parent e965d8ba
Pipeline #224378 passed with stage
in 1 minute and 19 seconds
......@@ -86,6 +86,11 @@ AbstractResourcesBackend *AbstractResource::backend() const
return static_cast<AbstractResourcesBackend *>(parent());
}
QObject *AbstractResource::backendObject() const
{
return parent();
}
QString AbstractResource::status()
{
switch (state()) {
......
......@@ -61,7 +61,7 @@ class DISCOVERCOMMON_EXPORT AbstractResource : public QObject
Q_PROPERTY(QString availableVersion READ availableVersion NOTIFY versionsChanged)
Q_PROPERTY(QString section READ section CONSTANT)
Q_PROPERTY(QStringList mimetypes READ mimetypes CONSTANT)
Q_PROPERTY(AbstractResourcesBackend *backend READ backend CONSTANT)
Q_PROPERTY(QObject *backend READ backendObject CONSTANT)
Q_PROPERTY(QVariant rating READ ratingVariant NOTIFY ratingFetched)
Q_PROPERTY(QString appstreamId READ appstreamId CONSTANT)
Q_PROPERTY(QString categoryDisplay READ categoryDisplay CONSTANT)
......@@ -189,6 +189,7 @@ public:
virtual QString status();
AbstractResourcesBackend *backend() const;
QObject *backendObject() const;
/**
* @returns a name sort key for faster sorting
......
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