KDE 4.2 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KTagCloudWidget Class Reference

from PyKDE4.nepomuk import *

Inherits: QWidget → QObject
Subclasses: Nepomuk.TagCloud

Detailed Description


Signals

 tagClicked (QString tag)

Methods

 __init__ (self, QWidget parent=0)
 addTag (self, QString tag, int weight)
 addTags (self, QMap tags)
 clear (self)
 resizeEvent (self, QResizeEvent e)
 setMaxFontSize (self, int pointSize)
 setMinFontSize (self, int pointSize)
 tagClicked (self, QString tag)
int tagWeight (self, QString tag)

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

clear (   self )

Remove all tags from the cloud.

resizeEvent (  self,
QResizeEvent  e
)
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.

tagClicked (  self,
QString  tag
)
Signal syntax:
QObject.connect(source, SIGNAL("tagClicked(const QString&)"), target_slot)
int tagWeight (  self,
QString  tag
)

Retrieve the weight for a certain tag

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal