returns KAboutLicense
|
static
|
KDE 4.1.0 and later only
|
Argument | Type | Default |
keyword | QString | |
|
|
Fetch a known license by a keyword.
Frequently the license data is provided by a terse keyword-like string,
e.g. by a field in a .desktop file. Using this method, an application
can get hold of a proper KAboutLicense object, providing that the
license is one of the several known to KDE, and use it to present
more human-readable information to the user.
Keywords are matched by stripping all whitespace and lowercasing.
The known keywords correspond to the KAboutData.LicenseKey enumeration,
e.g. any of "LGPLV3", "LGPLv3", "LGPL v3" would match License_LGPL_V3.
If there is no match for the keyword, a valid license object is still
returned, with its name and text informing about a custom license,
and its key equal to KAboutData.License_Custom.
keyword - The license keyword.
Returns The license object.
See also KAboutData.LicenseKey
@since 4.1
|