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
const QPalette & palette() const
int width() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
void updateGeometry()
int right() const
virtual void setModel(QAbstractItemModel *model)
Definition: kdganttglobal.h:213
QWidget * viewport() const
int height() const
void setFrameStyle(int style)
virtual QRect drawItem(QPainter *painter, const QModelIndex &index, const QPoint &pos=QPoint()) const 
Definition: kdganttlegend.cpp:144
QSize baseSize() const
typedef Alignment
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void update()
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
int x() const
int y() const
int & rheight()
bool isNull() const
QModelIndex indexAt(const QPoint &point) const 
Definition: kdganttlegend.cpp:63
bool isValid() const
Definition: kdganttglobal.h:207
int toInt(bool *ok) const
Definition: kdganttlegend_p.h:33
void setWidth(int width)
bool isEmpty() const
void setItemDelegate(QAbstractItemDelegate *delegate)
QAbstractItemDelegate * itemDelegate() const
virtual QVariant data(const QModelIndex &index, int role) const =0
Definition: kdganttglobal.h:208
QRect rect() const
int width(const QString &text, int len) const
QModelIndex rootIndex() const
int width() const
const QAbstractItemModel * model() const
virtual StyleOptionGanttItem getStyleOption(const QModelIndex &index) const 
Definition: kdganttlegend.cpp:129
void setWidth(qreal width)
int height() const
int height() const
virtual QSize measureItem(const QModelIndex &index, bool recursive=true) const 
Definition: kdganttlegend.cpp:186
int bottom() const
QStyleOption subclass for gantt items. 
Definition: kdganttstyleoptionganttitem.h:36
QRect visualRect(const QModelIndex &index) const 
Definition: kdganttlegend.cpp:69
QAbstractItemModel * model() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void paintGanttItem(QPainter *p, const StyleOptionGanttItem &opt, const QModelIndex &idx)
Definition: kdganttitemdelegate.cpp:225
QString toString() const
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.
    KDE API Reference