1 #ifndef QTSCRIPTSHELL_QSQLTABLEMODEL_H
2 #define QTSCRIPTSHELL_QSQLTABLEMODEL_H
4 #include <qsqltablemodel.h>
6 #include <QtScript/qscriptvalue.h>
14 QModelIndex
buddy(
const QModelIndex&
index)
const;
20 QVariant
data(
const QModelIndex& idx,
int role = Qt::DisplayRole)
const;
22 bool dropMimeData(
const QMimeData* data, Qt::DropAction action,
int row,
int column,
const QModelIndex& parent);
23 bool event(QEvent* arg__1);
25 void fetchMore(
const QModelIndex& parent);
26 Qt::ItemFlags
flags(
const QModelIndex& index)
const;
27 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
28 QModelIndex
index(
int row,
int column,
const QModelIndex& parent)
const;
29 bool insertColumns(
int column,
int count,
const QModelIndex& parent);
31 bool insertRows(
int row,
int count,
const QModelIndex& parent = QModelIndex());
32 QMap<int , QVariant >
itemData(
const QModelIndex& index)
const;
33 QList<QModelIndex >
match(
const QModelIndex& start,
int role,
const QVariant& value,
int hits, Qt::MatchFlags flags)
const;
34 QMimeData*
mimeData(
const QList<QModelIndex >& indexes)
const;
38 bool removeColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
39 bool removeRows(
int row,
int count,
const QModelIndex& parent = QModelIndex());
42 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
45 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
48 bool setHeaderData(
int section, Qt::Orientation orientation,
const QVariant& value,
int role);
49 bool setItemData(
const QModelIndex& index,
const QMap<int , QVariant >& roles);
50 void setSort(
int column, Qt::SortOrder order);
51 void setTable(
const QString& tableName);
52 void sort(
int column, Qt::SortOrder order);
53 QSize
span(
const QModelIndex& index)
const;
62 #endif // QTSCRIPTSHELL_QSQLTABLEMODEL_H