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:1565
UseCaseWidget(UMLScene *scene, UMLUseCase *o)
Creates a UseCase widget.
Definition: usecasewidget.cpp:23
Definition: umlwidget.h:220
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides the standard paint event.
Definition: usecasewidget.cpp:38
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType)
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1619
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:197
Definition: umlwidget.h:221
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:1707
This class contains the non-graphical information required for a UML UseCase.
Definition: usecase.h:24
Definition: umlwidget.h:224
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:431
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.