diff --git a/qt/component.cpp b/qt/component.cpp index fba82b58..60c733e8 100644 --- a/qt/component.cpp +++ b/qt/component.cpp @@ -550,6 +550,16 @@ void AppStream::Component::addProvided(const AppStream::Provided &provided) as_component_add_provided(d->cpt, provided.cPtr()); } +void Component::sortScreenshots(const QString &environment, + const QString &style, + bool prioritizeStyle) +{ + as_component_sort_screenshots(d->cpt, + qPrintable(environment), + qPrintable(style), + prioritizeStyle); +} + QList Component::screenshotsAll() const { QList res; diff --git a/qt/component.h b/qt/component.h index f985285b..43c5f1f2 100644 --- a/qt/component.h +++ b/qt/component.h @@ -225,6 +225,7 @@ class APPSTREAMQT_EXPORT Component AppStream::Provided provided(Provided::Kind kind) const; void addProvided(const AppStream::Provided &provided); + void sortScreenshots(const QString &environment, const QString &style, bool prioritizeStyle); QList screenshotsAll() const; void addScreenshot(const AppStream::Screenshot &screenshot);