mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
[license] Change to enum class
- non-functional change, just chasing modern C++
This commit is contained in:
parent
f299b86a3b
commit
81016667ae
3 changed files with 15 additions and 14 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue