1 #ifndef QTSCRIPTSHELL_QSQLRELATIONALTABLEMODEL_H
2 #define QTSCRIPTSHELL_QSQLRELATIONALTABLEMODEL_H
4 #include <qsqlrelationaltablemodel.h>
6 #include <QtScript/qscriptvalue.h>
14 QModelIndex
buddy(
const QModelIndex&
index)
const;
20 QVariant
data(
const QModelIndex& item,
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)
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);
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;
39 bool removeColumns(
int column,
int count,
const QModelIndex& parent = QModelIndex());
40 bool removeRows(
int row,
int count,
const QModelIndex& parent);
43 int rowCount(
const QModelIndex& parent)
const;
46 bool setData(
const QModelIndex& item,
const QVariant& value,
int role = Qt::EditRole);
49 bool setHeaderData(
int section, Qt::Orientation orientation,
const QVariant& value,
int role);
50 bool setItemData(
const QModelIndex& index,
const QMap<int , QVariant >& roles);
51 void setRelation(
int column,
const QSqlRelation& relation);
52 void setSort(
int column, Qt::SortOrder order);
53 void setTable(
const QString& tableName);
54 void sort(
int column, Qt::SortOrder order);
55 QSize
span(
const QModelIndex& index)
const;
64 #endif // QTSCRIPTSHELL_QSQLRELATIONALTABLEMODEL_H