1 #ifndef QTSCRIPTSHELL_QTREEVIEW_H
2 #define QTSCRIPTSHELL_QTREEVIEW_H
6 #include <QtScript/qscriptvalue.h>
17 void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint);
21 void currentChanged(
const QModelIndex& current,
const QModelIndex& previous);
23 void dataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
29 void drawBranches(QPainter* painter,
const QRect& rect,
const QModelIndex& index)
const;
30 void drawRow(QPainter* painter,
const QStyleOptionViewItem& options,
const QModelIndex& index)
const;
32 bool edit(
const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent*
event);
45 QModelIndex
indexAt(
const QPoint& p)
const;
54 int metric(QPaintDevice::PaintDeviceMetric arg__1)
const;
65 void rowsInserted(
const QModelIndex& parent,
int start,
int end);
67 void scrollTo(
const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible);
70 void selectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
71 QItemSelectionModel::SelectionFlags
selectionCommand(
const QModelIndex& index,
const QEvent*
event)
const;
72 void setModel(QAbstractItemModel* model);
74 void setSelection(
const QRect& rect, QItemSelectionModel::SelectionFlags command);
79 void startDrag(Qt::DropActions supportedActions);
90 QRect
visualRect(
const QModelIndex& index)
const;
97 #endif // QTSCRIPTSHELL_QTREEVIEW_H