1 #ifndef QTSCRIPTSHELL_QABSTRACTLISTMODEL_H
2 #define QTSCRIPTSHELL_QABSTRACTLISTMODEL_H
4 #include <qabstractitemmodel.h>
6 #include <QtScript/qscriptvalue.h>
14 QModelIndex
buddy(
const QModelIndex&
index)
const;
18 QVariant
data(
const QModelIndex& index,
int role)
const;
19 bool dropMimeData(
const QMimeData* data, Qt::DropAction action,
int row,
int column,
const QModelIndex& parent);
20 bool event(QEvent* arg__1);
22 void fetchMore(
const QModelIndex& parent);
23 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
24 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
25 QModelIndex
index(
int row,
int column = 0,
const QModelIndex& parent = QModelIndex())
const;
26 bool insertColumns(
int column,
int count,
const QModelIndex& parent);
27 bool insertRows(
int row,
int count,
const QModelIndex& parent);
28 QMap<int , QVariant >
itemData(
const QModelIndex& index)
const;
29 QList<QModelIndex >
match(
const QModelIndex& start,
int role,
const QVariant& value,
int hits, Qt::MatchFlags flags)
const;
30 QMimeData*
mimeData(
const QList<QModelIndex >& indexes)
const;
32 bool removeColumns(
int column,
int count,
const QModelIndex& parent);
33 bool removeRows(
int row,
int count,
const QModelIndex& parent);
35 int rowCount(
const QModelIndex& parent)
const;
36 bool setData(
const QModelIndex& index,
const QVariant& value,
int role);
37 bool setHeaderData(
int section, Qt::Orientation orientation,
const QVariant& value,
int role);
38 bool setItemData(
const QModelIndex& index,
const QMap<int , QVariant >& roles);
39 void sort(
int column, Qt::SortOrder order);
40 QSize
span(
const QModelIndex& index)
const;
48 #endif // QTSCRIPTSHELL_QABSTRACTLISTMODEL_H