1 #ifndef QTSCRIPTSHELL_QTREEWIDGET_H
2 #define QTSCRIPTSHELL_QTREEWIDGET_H
4 #include <qtreewidget.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 dropMimeData(QTreeWidgetItem* parent,
int index,
const QMimeData* data, Qt::DropAction action);
33 bool edit(
const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent*
event);
36 bool event(QEvent* e);
46 QModelIndex
indexAt(
const QPoint& p)
const;
55 int metric(QPaintDevice::PaintDeviceMetric arg__1)
const;
67 void rowsInserted(
const QModelIndex& parent,
int start,
int end);
69 void scrollTo(
const QModelIndex& index, QAbstractItemView::ScrollHint hint);
72 void selectionChanged(
const QItemSelection& selected,
const QItemSelection& deselected);
73 QItemSelectionModel::SelectionFlags
selectionCommand(
const QModelIndex& index,
const QEvent*
event)
const;
75 void setSelection(
const QRect& rect, QItemSelectionModel::SelectionFlags command);
80 void startDrag(Qt::DropActions supportedActions);
92 QRect
visualRect(
const QModelIndex& index)
const;
99 #endif // QTSCRIPTSHELL_QTREEWIDGET_H