#include <graphic_items.h>
Inheritance diagram for GraphicText:
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 |
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] |
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.
QFont GraphicText::font [read, write] |
QString GraphicText::text [read, write] |
TextType GraphicText::texttype [read, write] |
qreal GraphicText::textwidth [read, write] |