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