[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

@ -219,6 +219,10 @@ PackageChooserViewStep::fillModel( const QVariantList& items )
{
m_model->addPackage( PackageItem::fromAppData( item_map ) );
}
else if ( item_map.contains( "appstream" ) )
{
m_model->addPackage( PackageItem::fromAppStream( item_map ) );
}
else
{
m_model->addPackage( PackageItem( item_map ) );