branding: Add a shortProductName entry.
This is what the bootloader modules really want, and it was also missing for consistency with the other branding entries.
This commit is contained in:
parent
cde7356f0d
commit
538b457ea8
@ -3,6 +3,7 @@ componentName: default
|
||||
|
||||
strings:
|
||||
productName: Generic GNU/Linux
|
||||
shortProductName: Generic
|
||||
version: 1.0 LTS
|
||||
shortVersion: 1.0
|
||||
versionedName: Generic GNU/Linux 1.0 LTS "Rusty Trombone"
|
||||
|
@ -50,7 +50,8 @@ QStringList Branding::s_stringEntryStrings =
|
||||
"version",
|
||||
"shortVersion",
|
||||
"versionedName",
|
||||
"shortVersionedName"
|
||||
"shortVersionedName",
|
||||
"shortProductName"
|
||||
};
|
||||
|
||||
|
||||
@ -206,11 +207,8 @@ void
|
||||
Branding::setGlobals( GlobalStorage* globalStorage ) const
|
||||
{
|
||||
QVariantMap brandingMap;
|
||||
brandingMap.insert( "productName", string( ProductName ) );
|
||||
brandingMap.insert( "version", string( Version ) );
|
||||
brandingMap.insert( "shortVersion", string( ShortVersion ) );
|
||||
brandingMap.insert( "versionedName", string( VersionedName ) );
|
||||
brandingMap.insert( "shortVersionedName", string( ShortVersionedName ) );
|
||||
foreach ( const QString& key, s_stringEntryStrings )
|
||||
brandingMap.insert( key, m_strings.value( key ) );
|
||||
globalStorage->insert( "branding", brandingMap );
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,8 @@ public:
|
||||
Version,
|
||||
ShortVersion,
|
||||
VersionedName,
|
||||
ShortVersionedName
|
||||
ShortVersionedName,
|
||||
ShortProductName
|
||||
};
|
||||
|
||||
enum ImageEntry : short
|
||||
|
Loading…
Reference in New Issue
Block a user