kdgantt2
kdganttgraphicsitem.cpp
Go to the documentation of this file.
117 opt.displayPosition = m_endConstraints.size()<m_startConstraints.size()?StyleOptionGanttItem::Left:StyleOptionGanttItem::Right;
128 case StyleOptionGanttItem::Right: opt.displayAlignment = Qt::AlignRight|Qt::AlignVCenter; break;
148 qDebug() << "GraphicsItem::setRect("<<r<<"), txt="<<m_index.model()->data( m_index, Qt::DisplayRole ).toString();
149 if ( m_index.model()->data( m_index, Qt::DisplayRole ).toString() == QLatin1String("Code Freeze" ) ) {
309 //scene()->setSceneRect( scene()->sceneRect().united( mapToScene( boundingRect() ).boundingRect() ) );
381 ItemDelegate::InteractionState istate = scene()->itemDelegate()->interactionStateFor( event->pos(), opt, index() );
443 GraphicsItem* other = qgraphicsitem_cast<GraphicsItem*>( scene()->itemAt( event->scenePos() ) );
448 view->addConstraint( scene()->summaryHandlingModel()->mapToSource( scene()->dragSource()->index() ),
477 ItemDelegate::InteractionState istate = scene()->itemDelegate()->interactionStateFor( event->pos(), opt, index() );
520 //qDebug() << "GraphicsItem::mouseMoveEvent("<<event<<"), m_istate="<< static_cast<ItemDelegate::InteractionState>( m_istate );
QItemSelectionModel * selectionModel() const
Definition: kdganttgraphicsscene.cpp:255
Position displayPosition
Definition: kdganttstyleoptionganttitem.h:46
void mousePressEvent(QGraphicsSceneMouseEvent *)
Definition: kdganttgraphicsitem.cpp:416
void updateItem(const Span &rowgeometry, const QPersistentModelIndex &idx)
Definition: kdganttgraphicsitem.cpp:276
GraphicsItem(QGraphicsItem *parent=0, GraphicsScene *scene=0)
Definition: kdganttgraphicsitem.cpp:70
void setBoundingRect(const QRectF &r)
Definition: kdganttgraphicsitem.cpp:160
void itemDoubleClicked(const QModelIndex &)
Definition: kdganttgraphicsscene.cpp:611
void removeStartConstraint(ConstraintGraphicsItem *)
Definition: kdganttgraphicsitem.cpp:248
void setStart(const QPointF &start)
Definition: kdganttconstraintgraphicsitem.cpp:104
The GraphicsView class provides a model/view implementation of a gantt chart.
Definition: kdganttgraphicsview.h:44
virtual int maximumItemHeight() const =0
const QPersistentModelIndex & index() const
Definition: kdganttgraphicsitem.h:66
Definition: kdganttglobal.h:204
void setEnd(const QPointF &end)
Definition: kdganttconstraintgraphicsitem.cpp:111
void itemClicked(const QModelIndex &)
Definition: kdganttgraphicsscene.cpp:606
void hoverMoveEvent(QGraphicsSceneHoverEvent *)
Definition: kdganttgraphicsitem.cpp:377
virtual bool mapFromChart(const Span &span, const QModelIndex &idx, const QList< Constraint > &constraints=QList< Constraint >()) const =0
void itemEntered(const QModelIndex &)
Definition: kdganttgraphicsscene.cpp:596
Definition: kdganttgraphicsscene.h:48
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
QRectF boundingRect() const
Definition: kdganttgraphicsitem.cpp:208
void hoverLeaveEvent(QGraphicsSceneHoverEvent *)
Definition: kdganttgraphicsitem.cpp:409
ConstraintModel * constraintModel() const
Definition: kdganttgraphicsscene.cpp:232
void updateRow(const QModelIndex &idx)
Definition: kdganttgraphicsscene.cpp:370
QAbstractProxyModel * summaryHandlingModel() const
Definition: kdganttgraphicsscene.cpp:211
void mouseReleaseEvent(QGraphicsSceneMouseEvent *)
Definition: kdganttgraphicsitem.cpp:434
void removeEndConstraint(ConstraintGraphicsItem *)
Definition: kdganttgraphicsitem.cpp:255
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *)
Definition: kdganttgraphicsitem.cpp:474
Definition: kdganttglobal.h:207
void focusInEvent(QFocusEvent *event)
Definition: kdganttgraphicsitem.cpp:339
void addEndConstraint(ConstraintGraphicsItem *)
Definition: kdganttgraphicsitem.cpp:240
void itemPressed(const QModelIndex &)
Definition: kdganttgraphicsscene.cpp:601
Definition: kdganttglobal.h:205
void mouseMoveEvent(QGraphicsSceneMouseEvent *)
Definition: kdganttgraphicsitem.cpp:515
virtual Span mapToChart(const QModelIndex &idx) const =0
void setDragSource(GraphicsItem *item)
Definition: kdganttgraphicsscene.cpp:616
ItemDelegate * itemDelegate() const
Definition: kdganttgraphicsscene.cpp:192
void addStartConstraint(ConstraintGraphicsItem *)
Definition: kdganttgraphicsitem.cpp:232
Definition: kdganttglobal.h:209
virtual QString ganttToolTip() const
Definition: kdganttgraphicsitem.cpp:190
virtual void addConstraint(const QModelIndex &from, const QModelIndex &to, Qt::KeyboardModifiers modifiers)
Definition: kdganttgraphicsview.cpp:552
Definition: kdganttglobal.h:216
void setIndex(const QPersistentModelIndex &idx)
Definition: kdganttgraphicsitem.cpp:184
AbstractRowController * rowController() const
Definition: kdganttgraphicsscene.cpp:265
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: kdganttgraphicsitem.cpp:172
QStyleOption subclass for gantt items.
Definition: kdganttstyleoptionganttitem.h:36
virtual void paintGanttItem(QPainter *p, const StyleOptionGanttItem &opt, const QModelIndex &idx)
Definition: kdganttitemdelegate.cpp:225
QVariant itemChange(GraphicsItemChange, const QVariant &value)
Definition: kdganttgraphicsitem.cpp:313
Definition: kdganttgraphicsitem.h:42
QRectF boundingRect
Definition: kdganttstyleoptionganttitem.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:05 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 22:55:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.