KGantt
kganttitemdelegate.cpp
72QPen ItemDelegate::Private::constraintPen( const QPointF& start, const QPointF& end, const Constraint& constraint, const QStyleOptionGraphicsItem& opt )
192 // An event item is infinitely thin, basically just a line, because it has only one date instead of two.
228 //qDebug() << painter->font() << opt.fontMetrics.height() << painter->device()->width() << painter->device()->height();
278 path.quadTo( QPointF( r.right()-deltaXBezierControl, r.top() + deltaY ), QPointF( r.right()-deltaX, r.top() + deltaY ) );
281 path.quadTo( QPointF( r.left()+deltaXBezierControl, r.top() + deltaY ), QPointF( r.left(), r.top() + 2.*deltaY ) );
342QRectF ItemDelegate::constraintBoundingRect( const QPointF& start, const QPointF& end, const Constraint &constraint ) const
384void ItemDelegate::paintFinishStartConstraint( QPainter* painter, const QStyleOptionGraphicsItem& opt, const QPointF& start, const QPointF& end, const Constraint &constraint )
430void ItemDelegate::paintFinishFinishConstraint( QPainter* painter, const QStyleOptionGraphicsItem& opt, const QPointF& start, const QPointF& end, const Constraint &constraint )
476void ItemDelegate::paintStartStartConstraint( QPainter* painter, const QStyleOptionGraphicsItem& opt, const QPointF& start, const QPointF& end, const Constraint &constraint )
522void ItemDelegate::paintStartFinishConstraint( QPainter* painter, const QStyleOptionGraphicsItem& opt, const QPointF& start, const QPointF& end, const Constraint &constraint )
A class used to represent a dependency.
virtual void paintConstraintItem(QPainter *p, const QStyleOptionGraphicsItem &opt, const QPointF &start, const QPointF &end, const Constraint &constraint)
Definition kganttitemdelegate.cpp:364
QPen defaultPen(ItemType type) const
Definition kganttitemdelegate.cpp:127
virtual QString toolTip(const QModelIndex &idx) const
Definition kganttitemdelegate.cpp:133
virtual Span itemBoundingSpan(const StyleOptionGanttItem &opt, const QModelIndex &idx) const
Definition kganttitemdelegate.cpp:148
virtual InteractionState interactionStateFor(const QPointF &pos, const StyleOptionGanttItem &opt, const QModelIndex &idx) const
Definition kganttitemdelegate.cpp:181
void setDefaultBrush(ItemType type, const QBrush &brush)
Definition kganttitemdelegate.cpp:109
void setDefaultPen(ItemType type, const QPen &pen)
Definition kganttitemdelegate.cpp:121
virtual void paintGanttItem(QPainter *p, const StyleOptionGanttItem &opt, const QModelIndex &idx)
Definition kganttitemdelegate.cpp:215
QBrush defaultBrush(ItemType type) const
Definition kganttitemdelegate.cpp:115
virtual QRectF constraintBoundingRect(const QPointF &start, const QPointF &end, const Constraint &constraint) const
Definition kganttitemdelegate.cpp:342
A class representing a start point and a length.
QStyleOption subclass for gantt items.
Definition kganttstyleoptionganttitem.h:20
Position displayPosition
Definition kganttstyleoptionganttitem.h:30
QRectF boundingRect
Definition kganttstyleoptionganttitem.h:28
Q_SCRIPTABLE Q_NOREPLY void start()
QDebug operator<<(QDebug dbg, const DcrawInfoContainer &c)
@ TaskCompletionRole
Task completion percentage used by Task items. Should be an integer og a qreal between 0 and 100.
Definition kganttglobal.h:216
const QList< QKeySequence > & end()
virtual QVariant data(const QModelIndex &index, int role) const const=0
virtual Qt::ItemFlags flags(const QModelIndex &index) const const
QFontMetrics fontMetrics()
void setAlpha(int alpha)
QPalette palette()
bool isValid() const const
const QAbstractItemModel * model() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
void drawPath(const QPainterPath &path)
void drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fillRule)
void drawPolyline(const QPoint *points, int pointCount)
void drawRect(const QRect &rectangle)
void drawText(const QPoint &position, const QString &text)
void fillRect(const QRect &rectangle, QGradient::Preset preset)
const QPen & pen() const const
void restore()
void save()
void setBrush(Qt::BrushStyle style)
void setBrushOrigin(const QPoint &position)
void setPen(Qt::PenStyle style)
void translate(const QPoint &offset)
QColor color() const const
void setColor(const QColor &color)
void setWidth(int width)
int width() const const
qreal x() const const
QRectF boundingRect() const const
QRectF adjusted(qreal dx1, qreal dy1, qreal dx2, qreal dy2) const const
bool contains(const QPointF &point) const const
qreal height() const const
bool isValid() const const
qreal left() const const
qreal right() const const
void setHeight(qreal height)
void setY(qreal y)
qreal top() const const
QPointF topLeft() const const
QPointF topRight() const const
void translate(const QPointF &offset)
QRectF translated(const QPointF &offset) const const
qreal width() const const
qreal x() const const
qreal y() const const
QString arg(Args &&... args) const const
bool isNull() const const
State_Selected
typedef Alignment
NoBrush
green
ToolTipRole
ItemIsEditable
bool canConvert() const const
int toInt(bool *ok) const const
qreal toReal(bool *ok) const const
QString toString() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.