# class TagWidget

###

Module | nepomuk
Namespace | Nepomuk
Class | TagWidget
Inherits | QWidget

TagWidget provides a simple GUI interface to assign tags. It consists of a single text line displaying the assigned tags and a menu to change the tags.

### methods

- TagWidget (resource, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  resource | Nepomuk.Resource |
  parent | QWidget | 0

  Creates a new TagWidget for resource. The assigned tags are loaded instantly.

- TagWidget (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

- assignedTags ( )

  returns QList<Nepomuk::Tag>

  Returns The list of all tags that are assigned to the currently set resource or an empty list if no resource has been set.

  See also setTaggedResource, taggedResource, Resource.getTags

- setAssignedTags (tags)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  tags | QList<Nepomuk::Tag> |

  Set the list of tags to be assigned to the configured resource. If no resource has been set this method does nothing.

  See also setTaggedResource

- setTaggedResource (resource)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  resource | Nepomuk.Resource |

  Set the Resource to be tagged. The assigned tags will be loaded instantly.

- setTaggedResources (resources)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  resources | QList<Nepomuk::Resource> |

- tagClicked (a0)

  returns Nothing
  SIGNAL ("tagClicked (Tag)")

  Argument | Type | Default
  --- | --- | ---
  a0 | Nepomuk.Tag |

  This signal is emitted whenever a tag is clicked.

- taggedResources ( )

  returns QList<Nepomuk::Resource>

  Returns The resources that are supposed to be tagged or an empty list if none have been set.