Edge item. More...
#include </local/robotpkg/var/tmp/robotpkg/graphics/qt-qgv/work/qgv-1.2.0/QGVCore/QGVEdge.h>
Public Types | |
enum | { Type = UserType + 3 } |
Public Member Functions | |
~QGVEdge () | |
QString | label () const |
QRectF | boundingRect () const |
QPainterPath | shape () const |
void | setLabel (const QString &label) |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
void | setAttribute (const QString &name, const QString &value) |
QString | getAttribute (const QString &name) const |
void | updateLayout () |
int | type () const |
Friends | |
class | QGVScene |
Edge item.
QGVEdge::~QGVEdge | ( | ) |
QRectF QGVEdge::boundingRect | ( | ) | const |
QString QGVEdge::getAttribute | ( | const QString & | name | ) | const |
References QGVEdgePrivate::edge().
Referenced by label(), and updateLayout().
QString QGVEdge::label | ( | ) | const |
References getAttribute().
void QGVEdge::paint | ( | QPainter * | painter, |
const QStyleOptionGraphicsItem * | option, | ||
QWidget * | widget = 0 |
||
) |
void QGVEdge::setAttribute | ( | const QString & | name, |
const QString & | value | ||
) |
References QGVEdgePrivate::edge().
Referenced by setLabel().
void QGVEdge::setLabel | ( | const QString & | label | ) |
References setAttribute().
Referenced by QGVScene::addEdge().
QPainterPath QGVEdge::shape | ( | ) | const |
|
inline |
void QGVEdge::updateLayout | ( | ) |
|
friend |