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:
|
strings:
|
||||||
productName: Generic GNU/Linux
|
productName: Generic GNU/Linux
|
||||||
|
shortProductName: Generic
|
||||||
version: 1.0 LTS
|
version: 1.0 LTS
|
||||||
shortVersion: 1.0
|
shortVersion: 1.0
|
||||||
versionedName: Generic GNU/Linux 1.0 LTS "Rusty Trombone"
|
versionedName: Generic GNU/Linux 1.0 LTS "Rusty Trombone"
|
||||||
|
@ -50,7 +50,8 @@ QStringList Branding::s_stringEntryStrings =
|
|||||||
"version",
|
"version",
|
||||||
"shortVersion",
|
"shortVersion",
|
||||||
"versionedName",
|
"versionedName",
|
||||||
"shortVersionedName"
|
"shortVersionedName",
|
||||||
|
"shortProductName"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -206,11 +207,8 @@ void
|
|||||||
Branding::setGlobals( GlobalStorage* globalStorage ) const
|
Branding::setGlobals( GlobalStorage* globalStorage ) const
|
||||||
{
|
{
|
||||||
QVariantMap brandingMap;
|
QVariantMap brandingMap;
|
||||||
brandingMap.insert( "productName", string( ProductName ) );
|
foreach ( const QString& key, s_stringEntryStrings )
|
||||||
brandingMap.insert( "version", string( Version ) );
|
brandingMap.insert( key, m_strings.value( key ) );
|
||||||
brandingMap.insert( "shortVersion", string( ShortVersion ) );
|
|
||||||
brandingMap.insert( "versionedName", string( VersionedName ) );
|
|
||||||
brandingMap.insert( "shortVersionedName", string( ShortVersionedName ) );
|
|
||||||
globalStorage->insert( "branding", brandingMap );
|
globalStorage->insert( "branding", brandingMap );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,8 @@ public:
|
|||||||
Version,
|
Version,
|
||||||
ShortVersion,
|
ShortVersion,
|
||||||
VersionedName,
|
VersionedName,
|
||||||
ShortVersionedName
|
ShortVersionedName,
|
||||||
|
ShortProductName
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ImageEntry : short
|
enum ImageEntry : short
|
||||||
|
Loading…
Reference in New Issue
Block a user