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();