1 #ifndef QTSCRIPTSHELL_QABSTRACTITEMVIEW_H
2 #define QTSCRIPTSHELL_QABSTRACTITEMVIEW_H
4 #include <qabstractitemview.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);
30 bool edit(
const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent*
event);
43 QModelIndex
indexAt(
const QPoint& point)
const;
52 int metric(QPaintDevice::PaintDeviceMetric arg__1)
const;
63 void rowsInserted(
const QModelIndex& parent,
int start,
int end);
65 void scrollTo(
const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible);
68 void selectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
69 QItemSelectionModel::SelectionFlags
selectionCommand(
const QModelIndex& index,
const QEvent*
event = 0)
const;
70 void setModel(QAbstractItemModel* model);
72 void setSelection(
const QRect& rect, QItemSelectionModel::SelectionFlags command);
77 void startDrag(Qt::DropActions supportedActions);
88 QRect
visualRect(
const QModelIndex& index)
const;
92 QModelIndex
moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers)
93 {
return QModelIndex(); }
99 #endif // QTSCRIPTSHELL_QABSTRACTITEMVIEW_H