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

libplasma

Plasma::Label

Plasma::Label Class Reference

#include <label.h>

Inheritance diagram for Plasma::Label:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 36 of file label.h.


Public Slots

void dataUpdated (const QString &sourceName, const Plasma::DataEngine::Data &data)

Public Member Functions

QString image () const
 Label (QGraphicsWidget *parent=0)
QLabel * nativeWidget () const
void setImage (const QString &path)
void setStyleSheet (const QString &stylesheet)
void setText (const QString &text)
QString styleSheet ()
QString text () const
 ~Label ()

Protected Member Functions

void resizeEvent (QGraphicsSceneResizeEvent *event)

Properties

QString image
QLabel nativeWidget
QGraphicsWidget parentWidget
QString styleSheet
QString text

Constructor & Destructor Documentation

Plasma::Label::Label ( QGraphicsWidget *  parent = 0  )  [explicit]

Definition at line 84 of file label.cpp.

Plasma::Label::~Label (  ) 

Definition at line 97 of file label.cpp.


Member Function Documentation

void Plasma::Label::dataUpdated ( const QString &  sourceName,
const Plasma::DataEngine::Data &  data 
) [slot]

Definition at line 160 of file label.cpp.

QString Plasma::Label::image (  )  const

Returns:
the image path being displayed currently, or an empty string if none.

QLabel* Plasma::Label::nativeWidget (  )  const

Returns:
the native widget wrapped by this Label

void Plasma::Label::resizeEvent ( QGraphicsSceneResizeEvent *  event  )  [protected]

Definition at line 174 of file label.cpp.

void Plasma::Label::setImage ( const QString &  path  ) 

Sets the path to an image to display.

  • path the path to the image; if a relative path, then a themed image will be loaded.

Definition at line 112 of file label.cpp.

void Plasma::Label::setStyleSheet ( const QString &  stylesheet  ) 

Sets the stylesheet used to control the visual display of this Label.

  • stylesheet a CSS string

Definition at line 145 of file label.cpp.

void Plasma::Label::setText ( const QString &  text  ) 

Sets the display text for this Label.

  • text the text to display; should be translated.

Definition at line 102 of file label.cpp.

QString Plasma::Label::styleSheet (  ) 

Returns:
the stylesheet currently used with this widget

QString Plasma::Label::text (  )  const

Returns:
the display text


Property Documentation

QString Plasma::Label::image [read, write]

Definition at line 42 of file label.h.

QLabel * Plasma::Label::nativeWidget [read]

Definition at line 44 of file label.h.

QGraphicsWidget Plasma::Label::parentWidget [read]

Definition at line 40 of file label.h.

QString Plasma::Label::styleSheet [read, write]

Definition at line 43 of file label.h.

QString Plasma::Label::text [read, write]

Definition at line 41 of file label.h.


The documentation for this class was generated from the following files:
  • label.h
  • label.cpp

libplasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference 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