GraphicText Class Reference

#include <graphic_items.h>

Inheritance diagram for GraphicText:

Inheritance graph
[legend]
Collaboration diagram for GraphicText:

Collaboration graph
[legend]
List of all members.

Public Types

 PlainText
 HtmlText
enum  TextType { PlainText, HtmlText }

Public Member Functions

bool init ()
void paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *widget=0)
QRectF boundingRect () const
QGraphicsItem * graphicsItem ()
void setText (const QString &)
void setFont (const QFont &font)
void setTextWidth (qreal textwidth)
void setTextType (TextType)
QString text () const
QFont font () const
qreal textWidth ()
TextType textType ()

Properties

QString text []
qreal textwidth []
QFont font []
TextType texttype []

Private Attributes

QTextDocument m_doc
QString m_text
TextType m_type

Member Enumeration Documentation

enum GraphicText::TextType

Enumerator:
PlainText 
HtmlText 


Member Function Documentation

QRectF GraphicText::boundingRect (  )  const

Reimplemented in TimeInfo.

QFont GraphicText::font (  )  const [inline]

QGraphicsItem* GraphicText::graphicsItem (  )  [inline, virtual]

Implements PluginInterface.

Reimplemented in AmarokTrack, AmarokLyric, LMSensors, and AbstractSysInfo.

bool GraphicText::init (  )  [virtual]

Reimplemented from GraphicItem.

Reimplemented in AmarokTrack, AmarokLyric, LMSensors, AbstractSysInfo, MemoryInfo, CPUInfo, HDDInfo, TimeInfo, DateInfo, and NetworkInfo.

void GraphicText::paint ( QPainter *  ,
const QStyleOptionGraphicsItem *  ,
QWidget *  widget = 0 
)

Reimplemented in TimeInfo.

void GraphicText::setFont ( const QFont &  font  )  [inline]

void GraphicText::setText ( const QString &   ) 

void GraphicText::setTextType ( TextType   ) 

void GraphicText::setTextWidth ( qreal  textwidth  )  [inline]

QString GraphicText::text (  )  const [inline]

TextType GraphicText::textType (  )  [inline]

qreal GraphicText::textWidth (  )  [inline]


Member Data Documentation

QTextDocument GraphicText::m_doc [private]

Reimplemented in AmarokLyric.

QString GraphicText::m_text [private]

TextType GraphicText::m_type [private]

Reimplemented in AmarokTrack, MemoryInfo, CPUInfo, and NetworkInfo.


Property Documentation

QFont GraphicText::font [read, write]

QString GraphicText::text [read, write]

TextType GraphicText::texttype [read, write]

qreal GraphicText::textwidth [read, write]


The documentation for this class was generated from the following files:
Generated on Thu Apr 5 13:12:43 2007 for LCDBuilder by  doxygen 1.4.7