[packagechooser] Initial support for appstream items

- Use *appstream* as key in one of the items for the package-
   chooser to load data from the AppStream cache in the system.
 - Usable for some applications; for DE-selection not so much.
 - Currently unimplemented.
This commit is contained in:
Adriaan de Groot 2019-08-19 07:10:38 -04:00
parent 2f20ad30bf
commit eaa0c02f8d
6 changed files with 75 additions and 4 deletions

View file

@ -98,6 +98,15 @@ PackageItem::fromAppData( const QVariantMap& item_map )
}
#endif
#ifndef HAVE_APPSTREAM
PackageItem
PackageItem::fromAppStream( const QVariantMap& item_map )
{
cWarning() << "Loading AppStream data is not supported.";
return PackageItem();
}
#endif
PackageListModel::PackageListModel( QObject* parent )
: QAbstractListModel( parent )