kdgantt2
kdganttitemdelegate.cpp
Go to the documentation of this file.
238 //qDebug() << painter->font() << opt.fontMetrics.height() << painter->device()->width() << painter->device()->height();
292 path.quadTo( QPointF( r.right()-.5*delta, r.top() + delta ), QPointF( r.right()-2.*delta, r.top() + delta ) );
295 path.quadTo( QPointF( r.left()+.5*delta, r.top() + delta ), QPointF( r.left(), r.top() + 2.*delta ) );
315 const QRectF r = QRectF( opt.itemRect ).adjusted( -pw, -pw, pw, pw ).translated( -opt.itemRect.height()/2, 0 );
QHash< ItemType, QPen > defaultpen
Definition: kdganttitemdelegate_p.h:38
Position displayPosition
Definition: kdganttstyleoptionganttitem.h:46
QDebug operator<<(QDebug dbg, KDGantt::ItemDelegate::InteractionState state)
Definition: kdganttitemdelegate.cpp:42
void fillRect(const QRectF &rectangle, const QBrush &brush)
Definition: kdganttglobal.h:215
qreal x() const
qreal y() const
void closeSubpath()
void setColorAt(qreal position, const QColor &color)
void drawPolyline(const QPointF *points, int pointCount)
Definition: kdganttglobal.h:213
void setDefaultPen(ItemType type, const QPen &pen)
Definition: kdganttitemdelegate.cpp:141
void save()
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
void setAlpha(int alpha)
void moveTo(const QPointF &point)
qreal top() const
typedef Alignment
qreal left() const
void setBrushOrigin(int x, int y)
void setHeight(qreal height)
virtual InteractionState interactionStateFor(const QPointF &pos, const StyleOptionGanttItem &opt, const QModelIndex &idx) const
Definition: kdganttitemdelegate.cpp:200
virtual Span itemBoundingSpan(const StyleOptionGanttItem &opt, const QModelIndex &idx) const
Definition: kdganttitemdelegate.cpp:163
void drawRect(const QRectF &rectangle)
Definition: kdganttglobal.h:214
QColor color() const
bool isValid() const
qreal x() const
qreal y() const
QHash< ItemType, QBrush > defaultbrush
Definition: kdganttitemdelegate_p.h:37
void translate(qreal dx, qreal dy)
QBrush defaultBrush(ItemType type) const
Definition: kdganttitemdelegate.cpp:130
Definition: kdganttglobal.h:207
int toInt(bool *ok) const
void setPen(const QColor &color)
void lineTo(const QPointF &endPoint)
QPointF topLeft() const
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
QPointF topRight() const
QPen defaultPen(ItemType type) const
Definition: kdganttitemdelegate.cpp:150
virtual QVariant data(const QModelIndex &index, int role) const =0
qreal right() const
void restore()
virtual QRectF constraintBoundingRect(const QPointF &start, const QPointF &end) const
Definition: kdganttitemdelegate.cpp:357
bool isValid() const
QRectF boundingRect() const
qreal width() const
const QAbstractItemModel * model() const
void drawPath(const QPainterPath &path)
int width() const
void setWidth(int width)
Definition: kdganttglobal.h:206
QRectF translated(qreal dx, qreal dy) const
void setDefaultBrush(ItemType type, const QBrush &brush)
Definition: kdganttitemdelegate.cpp:121
Definition: kdganttglobal.h:212
QFontMetrics fontMetrics()
void translate(const QPointF &offset)
QStyleOption subclass for gantt items.
Definition: kdganttstyleoptionganttitem.h:36
QRectF adjusted(qreal dx1, qreal dy1, qreal dx2, qreal dy2) const
qreal height() const
virtual Qt::ItemFlags flags(const QModelIndex &index) const
double toDouble(bool *ok) const
bool contains(const QPointF &point) const
void setY(qreal y)
void quadTo(const QPointF &c, const QPointF &endPoint)
virtual void paintGanttItem(QPainter *p, const StyleOptionGanttItem &opt, const QModelIndex &idx)
Definition: kdganttitemdelegate.cpp:225
QObject * parent() const
ItemDelegate(QObject *parent=0)
Definition: kdganttitemdelegate.cpp:102
const QPen & pen() const
QString toString() const
virtual void paintConstraintItem(QPainter *p, const QStyleOptionGraphicsItem &opt, const QPointF &start, const QPointF &end, const QPen &pen)
Definition: kdganttitemdelegate.cpp:386
QRectF boundingRect
Definition: kdganttstyleoptionganttitem.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:29 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:31:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.