Nepomuk
Nepomuk::TagWidget Class Reference
TagWidget provides a simple GUI interface to assign tags. More...
#include <kmetadatatagwidget.h>
Inheritance diagram for Nepomuk::TagWidget:
Public Slots | |
| void | setAssignedTags (const QList< Tag > &tags) |
| void | setTaggedResource (const Resource &resource) |
| void | setTaggedResources (const QList< Resource > &resources) |
Signals | |
| void | tagClicked (Tag) |
Public Member Functions | |
| QList< Tag > | assignedTags () const |
| QList< Resource > | taggedResources () const |
| TagWidget (QWidget *parent=0) | |
| TagWidget (const Resource &resource, QWidget *parent=0) | |
| ~TagWidget () | |
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.
Definition at line 37 of file kmetadatatagwidget.h.
Constructor & Destructor Documentation
Creates a new TagWidget for resource.
The assigned tags are loaded instantly.
| Nepomuk::TagWidget::TagWidget | ( | QWidget * | parent = 0 |
) |
| Nepomuk::TagWidget::~TagWidget | ( | ) |
Member Function Documentation
| QList<Tag> Nepomuk::TagWidget::assignedTags | ( | ) | const |
- 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
| void Nepomuk::TagWidget::setAssignedTags | ( | const QList< Tag > & | tags | ) | [slot] |
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
| void Nepomuk::TagWidget::setTaggedResource | ( | const Resource & | resource | ) | [slot] |
Set the Resource to be tagged.
The assigned tags will be loaded instantly.
| void Nepomuk::TagWidget::setTaggedResources | ( | const QList< Resource > & | resources | ) | [slot] |
| void Nepomuk::TagWidget::tagClicked | ( | Tag | ) | [signal] |
This signal is emitted whenever a tag is clicked.
| QList<Resource> Nepomuk::TagWidget::taggedResources | ( | ) | const |
- Returns:
- The resources that are supposed to be tagged or an empty list if none have been set.
The documentation for this class was generated from the following file:
KDE 4.3 API Reference