TagWidget Class Reference
from PyKDE4.nepomuk import *
Inherits: QWidget → QObject
Namespace: Nepomuk
Detailed Description
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.
Method Documentation
Creates a new TagWidget for resource. The assigned tags are loaded
instantly.
__init__ |
( |
self, |
|
|
|
QWidget |
parent=0 |
|
) |
|
|
|
- Returns:
- The list of all tags that are assigned to the currently set
resource or an empty list if no resource has been set.
\sa setTaggedResource, taggedResource, Resource.getTags
Set the list of tags to be assigned to the configured resource.
If no resource has been set this method does nothing.
\sa setTaggedResource
Set the Resource to be tagged. The assigned tags will be loaded
instantly.
This signal is emitted whenever a tag is clicked.
- Signal syntax:
QObject.connect(source, SIGNAL("tagClicked(Tag)"), target_slot)
- Returns:
- The resources that are supposed to be tagged or an empty
list if none have been set.