23 #ifndef KDGANTTLEGEND_H 24 #define KDGANTTLEGEND_H 26 #include <QAbstractItemView> 41 QModelIndex indexAt(
const QPoint& point )
const;
42 QRect visualRect(
const QModelIndex& index )
const;
44 void scrollTo(
const QModelIndex&, ScrollHint = EnsureVisible ) {}
46 QSize sizeHint()
const;
47 QSize minimumSizeHint()
const;
49 void setModel( QAbstractItemModel* model );
52 virtual QRect drawItem( QPainter* painter,
const QModelIndex& index,
const QPoint& pos = QPoint() )
const;
53 virtual QSize measureItem(
const QModelIndex& index,
bool recursive =
true )
const;
56 void paintEvent( QPaintEvent* event );
60 QModelIndex
moveCursor( CursorAction, Qt::KeyboardModifiers ) {
return QModelIndex(); }
61 void setSelection(
const QRect&, QItemSelectionModel::SelectionFlags ) {}
66 virtual void modelDataChanged();
#define KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
Legend showing an image and a description for Gantt items.
void scrollTo(const QModelIndex &, ScrollHint=EnsureVisible)
Class only listed here to document inheritance of some KDChart classes.
int horizontalOffset() const
QModelIndex moveCursor(CursorAction, Qt::KeyboardModifiers)
QRegion visualRegionForSelection(const QItemSelection &) const
QStyleOption subclass for gantt items.
void setSelection(const QRect &, QItemSelectionModel::SelectionFlags)
int verticalOffset() const
bool isIndexHidden(const QModelIndex &) const