[license] Change to enum class

- non-functional change, just chasing modern C++
This commit is contained in:
Adriaan de Groot 2019-03-22 18:53:00 +01:00
parent f299b86a3b
commit 81016667ae
3 changed files with 15 additions and 14 deletions

View file

@ -121,17 +121,17 @@ LicenseViewStep::setConfigurationMap( const QVariantMap& configurationMap )
QString entryType = entryMap.value( "type", "software" ).toString();
if ( entryType == "driver" )
entry.type = LicenseEntry::Driver;
entry.type = LicenseEntry::Type::Driver;
else if ( entryType == "gpudriver" )
entry.type = LicenseEntry::GpuDriver;
entry.type = LicenseEntry::Type::GpuDriver;
else if ( entryType == "browserplugin" )
entry.type = LicenseEntry::BrowserPlugin;
entry.type = LicenseEntry::Type::BrowserPlugin;
else if ( entryType == "codec" )
entry.type = LicenseEntry::Codec;
entry.type = LicenseEntry::Type::Codec;
else if ( entryType == "package" )
entry.type = LicenseEntry::Package;
entry.type = LicenseEntry::Type::Package;
else
entry.type = LicenseEntry::Software;
entry.type = LicenseEntry::Type::Software;
entriesList.append( entry );
}