KTagCloudWidget Class Reference
from PyKDE4.nepomuk import *
Inherits: QWidget → QObject
Subclasses: Nepomuk.TagCloud
Detailed Description
Method Documentation
__init__ |
( |
self, |
|
|
|
QWidget |
parent=0 |
|
) |
|
|
|
addTag |
( |
self, |
|
|
|
QString |
tag, |
|
|
int |
weight |
|
) |
|
|
|
Add tag to the cloud using the weight factor weight.
Existing tags with the same name will be overwritten.
addTags |
( |
self, |
|
|
|
QMap |
tags |
|
) |
|
|
|
Add a set of tags with weight factors
Remove all tags from the cloud.
setMaxFontSize |
( |
self, |
|
|
|
int |
pointSize |
|
) |
|
|
|
Set the maximum font size to be used for the most popular tags.
Default is 22.
setMinFontSize |
( |
self, |
|
|
|
int |
pointSize |
|
) |
|
|
|
Set the minimum font size to be used for the most unpopular tags.
Default is 8.
- Signal syntax:
QObject.connect(source, SIGNAL("tagClicked(const QString&)"), target_slot)
int tagWeight |
( |
self, |
|
|
|
QString |
tag |
|
) |
|
|
|
Retrieve the weight for a certain tag