kdgantt2
kdganttlegend.cpp
Go to the documentation of this file.
89 disconnect( this->model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(modelDataChanged()) );
90 disconnect( this->model(), SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(modelDataChanged()) );
91 disconnect( this->model(), SIGNAL(columnsRemoved(QModelIndex,int,int)), this, SLOT(modelDataChanged()) );
99 connect( this->model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(modelDataChanged()) );
100 connect( this->model(), SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(modelDataChanged()) );
101 connect( this->model(), SIGNAL(columnsRemoved(QModelIndex,int,int)), this, SLOT(modelDataChanged()) );
133 opt.displayAlignment = Qt::Alignment( d->proxyModel.data( index, Qt::TextAlignmentRole ).toInt() );
158 const ItemType typ = static_cast<ItemType>( index.model()->data( index, ItemTypeRole ).toInt() );
175 const QRect r = drawItem( painter, d->proxyModel.index( row, 0, index ), QPoint( pos.x(), yPos ) );
Class used to render gantt items in a KDGantt::GraphicsView.
Definition: kdganttitemdelegate.h:39
Position displayPosition
Definition: kdganttstyleoptionganttitem.h:46
Definition: kdganttglobal.h:213
virtual QRect drawItem(QPainter *painter, const QModelIndex &index, const QPoint &pos=QPoint()) const
Definition: kdganttlegend.cpp:144
QModelIndex indexAt(const QPoint &point) const
Definition: kdganttlegend.cpp:63
Definition: kdganttglobal.h:207
Definition: kdganttlegend_p.h:33
Definition: kdganttglobal.h:208
virtual StyleOptionGanttItem getStyleOption(const QModelIndex &index) const
Definition: kdganttlegend.cpp:129
virtual QSize measureItem(const QModelIndex &index, bool recursive=true) const
Definition: kdganttlegend.cpp:186
QStyleOption subclass for gantt items.
Definition: kdganttstyleoptionganttitem.h:36
QRect visualRect(const QModelIndex &index) const
Definition: kdganttlegend.cpp:69
virtual void paintGanttItem(QPainter *p, const StyleOptionGanttItem &opt, const QModelIndex &idx)
Definition: kdganttitemdelegate.cpp:225
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.