umbrello/umbrello
usecasewidget.cpp
Go to the documentation of this file.
38 void UseCaseWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
60 painter->drawText(UC_MARGIN, textStartY, w - UC_MARGIN * 2, fontHeight, Qt::AlignCenter, name());
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves this UseCase to file.
Definition: usecasewidget.cpp:69
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1636
QDomNode appendChild(const QDomNode &newChild)
UseCaseWidget(UMLScene *scene, UMLUseCase *o)
Creates a UseCase widget.
Definition: usecasewidget.cpp:23
Definition: umlwidget.h:215
void setUnderline(bool enable)
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides the standard paint event.
Definition: usecasewidget.cpp:38
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:211
void setBold(bool enable)
void setFont(const QFont &font)
void setPen(const QColor &color)
void drawEllipse(const QRectF &rectangle)
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
int width(const QString &text, int len) const
Definition: umlwidget.h:216
void setItalic(bool enable)
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
A virtual method to save the properties of this widget into a QDomElement i.e xml.
Definition: umlwidget.cpp:1810
This class contains the non-graphical information required for a UML UseCase.
Definition: usecase.h:24
Definition: umlwidget.h:219
QDomElement createElement(const QString &tagName)
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1701
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:445
int lineSpacing() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.