[libcalamaresui] Chase stronger typing of ModuleDescriptor

main
Adriaan de Groot 5 years ago
parent 5ad73681c2
commit f366e3840f

@ -57,7 +57,7 @@ Module::Module()
Module::~Module() {}
void
Module::initFrom( const QVariantMap& moduleDescriptor, const QString& id )
Module::initFrom( const Calamares::ModuleSystem::Descriptor& moduleDescriptor, const QString& id )
{
m_key = ModuleSystem::InstanceKey( moduleDescriptor.value( "name" ).toString(), id );
if ( moduleDescriptor.contains( EMERGENCY ) )
@ -67,7 +67,7 @@ Module::initFrom( const QVariantMap& moduleDescriptor, const QString& id )
}
Module*
Module::fromDescriptor( const QVariantMap& moduleDescriptor,
Module::fromDescriptor( const Calamares::ModuleSystem::Descriptor& moduleDescriptor,
const QString& instanceId,
const QString& configFileName,
const QString& moduleDirectory )

@ -142,7 +142,7 @@ ModuleManager::loadedInstanceKeys()
}
QVariantMap
Calamares::ModuleSystem::Descriptor
ModuleManager::moduleDescriptor( const QString& name )
{
return m_availableDescriptorsByModuleName.value( name );

Loading…
Cancel
Save