• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Nepomuk

KTagCloudWidget Class Reference

#include <ktagcloudwidget.h>

Inheritance diagram for KTagCloudWidget:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 29 of file ktagcloudwidget.h.


Public Slots

void addTag (const QString &tag, int weight)
void addTags (const QMap< QString, int > &tags)
void clear ()
void setMaxFontSize (int pointSize)
void setMinFontSize (int pointSize)

Signals

void tagClicked (const QString &tag)

Public Member Functions

 KTagCloudWidget (QWidget *parent=0)
int tagWeight (const QString &tag) const
 ~KTagCloudWidget ()

Protected Member Functions

void resizeEvent (QResizeEvent *e)

Constructor & Destructor Documentation

KTagCloudWidget::KTagCloudWidget ( QWidget *  parent = 0  ) 

KTagCloudWidget::~KTagCloudWidget (  ) 


Member Function Documentation

void KTagCloudWidget::addTag ( const QString &  tag,
int  weight 
) [slot]

Add tag to the cloud using the weight factor weight.

Existing tags with the same name will be overwritten.

void KTagCloudWidget::addTags ( const QMap< QString, int > &  tags  )  [slot]

Add a set of tags with weight factors.

void KTagCloudWidget::clear (  )  [slot]

Remove all tags from the cloud.

void KTagCloudWidget::resizeEvent ( QResizeEvent *  e  )  [protected]

Reimplemented from QWidget.

void KTagCloudWidget::setMaxFontSize ( int  pointSize  )  [slot]

Set the maximum font size to be used for the most popular tags.

Default is 22.

void KTagCloudWidget::setMinFontSize ( int  pointSize  )  [slot]

Set the minimum font size to be used for the most unpopular tags.

Default is 8.

void KTagCloudWidget::tagClicked ( const QString &  tag  )  [signal]

int KTagCloudWidget::tagWeight ( const QString &  tag  )  const

Retrieve the weight for a certain tag.


The documentation for this class was generated from the following file:
  • ktagcloudwidget.h

Nepomuk

Skip menu "Nepomuk"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal