• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Nepomuk

Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
KTagCloudWidget Class Reference

#include <ktagcloudwidget.h>

Inheritance diagram for KTagCloudWidget:
QWidget Nepomuk::TagCloud

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)
 
 ~KTagCloudWidget ()
 
int tagWeight (const QString &tag) const
 

Protected Member Functions

void resizeEvent (QResizeEvent *e)
 

Detailed Description

Definition at line 29 of file ktagcloudwidget.h.

Constructor & Destructor Documentation

◆ KTagCloudWidget()

KTagCloudWidget::KTagCloudWidget ( QWidget *  parent = 0)

◆ ~KTagCloudWidget()

KTagCloudWidget::~KTagCloudWidget ( )

Member Function Documentation

◆ addTag

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.

◆ addTags

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

Add a set of tags with weight factors.

◆ clear

void KTagCloudWidget::clear ( )
slot

Remove all tags from the cloud.

◆ resizeEvent()

void KTagCloudWidget::resizeEvent ( QResizeEvent *  e)
protected

◆ setMaxFontSize

void KTagCloudWidget::setMaxFontSize ( int  pointSize)
slot

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

Default is 22.

◆ setMinFontSize

void KTagCloudWidget::setMinFontSize ( int  pointSize)
slot

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

Default is 8.

◆ tagClicked

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

◆ tagWeight()

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal