24 #ifndef GOBCHARTSVIEW_H
25 #define GOBCHARTSVIEW_H
27 #include <QAbstractItemView>
28 #include "utils/globalincludes.h"
29 #include "utils/gobchartsnocopy.h"
85 void setStateXML(
const QDomNode &viewNode,
const QDomNode &dataNode,
bool includeData =
true );
93 QString
getStateXML(
bool includeData =
true )
const;
96 QRect
visualRect(
const QModelIndex &index )
const;
99 QModelIndex
indexAt(
const QPoint &point )
const;
102 void scrollTo(
const QModelIndex &index, ScrollHint hint = EnsureVisible );
105 void setModel( QAbstractItemModel *model );
112 void setLabelDetails( GobChartsLabel label,
const QString &text,
const QFont &font,
const QColor &colour, Qt::Alignment align );
176 void emitLabelDetails( GobChartsLabel label,
const QString &text,
const QFont &font,
const QColor &colour, Qt::Alignment align );
243 qreal
value(
int row )
const;
266 QModelIndex
moveCursor( QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers );
281 void setSelection(
const QRect& rect, QItemSelectionModel::SelectionFlags command );
291 void dataChanged(
const QModelIndex &topLeft,
const QModelIndex &bottomRight );
294 void rowsInserted(
const QModelIndex &parent,
int start,
int end );
313 void resizeEvent( QResizeEvent *event );
317 void setSelectedTextItem(
const QString &itemName );
320 #endif // GOBCHARTSVIEW_H