#include <canvasitemparts.h>
Inheritance diagram for Text:


Public Member Functions | |
| Text (const QString &text, CNItem *parent, const QRect &r, QCanvas *canvas, int flags=Qt::AlignHCenter|Qt::AlignVCenter) | |
| ~Text () | |
| bool | setText (const QString &text) |
| virtual QRect | recommendedRect () const |
| virtual void | drawShape (QPainter &p) |
| int | flags () const |
| void | setFlags (int flags) |
Protected Attributes | |
| QString | m_text |
| int | m_flags |
Definition at line 94 of file canvasitemparts.h.
| bool Text::setText | ( | const QString & | text | ) |
Set the text, returning true if the size of this Text on the canvas has changed.
Definition at line 133 of file canvasitemparts.cpp.
References m_text, and GuiPart::updateConnectorPoints().
Referenced by Meter::stepNonLogic(), and Text().
| int Text::flags | ( | ) | const [inline] |
The text flags (see QPainter::drawText) - Qt::AlignmentFlags and Qt::TextFlags OR'd together.
Definition at line 112 of file canvasitemparts.h.
References m_flags.
| void Text::setFlags | ( | int | flags | ) |
Definition at line 144 of file canvasitemparts.cpp.
References m_flags, and GuiPart::updateConnectorPoints().
1.5.1