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