QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QAbstractItemModel.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QABSTRACTITEMMODEL_H
2 #define QTSCRIPTSHELL_QABSTRACTITEMMODEL_H
3 
4 #include <qabstractitemmodel.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QAbstractItemModel : public QAbstractItemModel
9 {
10 public:
13 
14  QModelIndex buddy(const QModelIndex& index) const;
15  bool canFetchMore(const QModelIndex& parent) const;
16  void childEvent(QChildEvent* arg__1);
17  int columnCount(const QModelIndex& parent = QModelIndex()) const;
18  void customEvent(QEvent* arg__1);
19  QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
20  bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent);
21  bool event(QEvent* arg__1);
22  bool eventFilter(QObject* arg__1, QEvent* arg__2);
23  void fetchMore(const QModelIndex& parent);
24  Qt::ItemFlags flags(const QModelIndex& index) const;
25  bool hasChildren(const QModelIndex& parent = QModelIndex()) const;
26  QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
27  QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
28  bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex());
29  bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex());
30  QMap<int , QVariant > itemData(const QModelIndex& index) const;
31  QList<QModelIndex > match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const;
32  QMimeData* mimeData(const QList<QModelIndex >& indexes) const;
33  QStringList mimeTypes() const;
34  QModelIndex parent(const QModelIndex& child) const;
35  bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex());
36  bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex());
37  void revert();
38  int rowCount(const QModelIndex& parent = QModelIndex()) const;
39  bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
40  bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole);
41  bool setItemData(const QModelIndex& index, const QMap<int , QVariant >& roles);
42  void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
43  QSize span(const QModelIndex& index) const;
44  bool submit();
45  Qt::DropActions supportedDropActions() const;
46  void timerEvent(QTimerEvent* arg__1);
47 
48  QScriptValue __qtscript_self;
49 };
50 
51 #endif // QTSCRIPTSHELL_QABSTRACTITEMMODEL_H