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:
Kevin Kofler 2014-11-16 05:14:57 +01:00
parent cde7356f0d
commit 538b457ea8
3 changed files with 7 additions and 7 deletions

View File

@ -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"

View File

@ -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 );
}

View File

@ -42,7 +42,8 @@ public:
Version,
ShortVersion,
VersionedName,
ShortVersionedName
ShortVersionedName,
ShortProductName
};
enum ImageEntry : short