# class KAboutLicense

###

Module | kdecore
Namespace |
Class | KAboutLicense
Inherits |

### methods

- KAboutLicense (other)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  other | KAboutLicense |

  Copy constructor. Performs a deep copy.

  other - object to copy

- KAboutLicense (licenseType, aboutData)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  licenseType | KAboutData.LicenseKey |
  aboutData | KAboutData |

  Internal Used by KAboutData to construct a predefined license.

- KAboutLicense (pathToFile, aboutData)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  pathToFile | QString |
  aboutData | KAboutData |

  Internal Used by KAboutData to construct license by given text

- KAboutLicense (licenseText, aboutData)

  returns ctor
  Not implemented
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  licenseText | KLocalizedString |
  aboutData | KAboutData |

  Internal Used by KAboutData to construct license by given text

- byKeyword (keyword)

  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

- key ( )

  returns KAboutData.LicenseKey
  KDE 4.1.0 and later only

  Returns the license key.

  Returns The license key as element of KAboutData.LicenseKey enum. @since 4.1

- name (formatName)

  returns QString
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  formatName | KAboutData.NameFormat |

  Returns the license name.

  Returns The license name as a string.

- text ( )

  returns QString
  KDE 4.1.0 and later only

  Returns the full license text. If the licenseType argument of the constructor has been used, any text defined by setLicenseText is ignored, and the standard text for the chosen license will be returned.

  Returns The license text.