4#ifndef QQMLTABLEMODEL_P_H
5#define QQMLTABLEMODEL_P_H
21#include <QtCore/QObject>
22#include <QtCore/QHash>
23#include <QtCore/QAbstractTableModel>
24#include <QtQml/qqml.h>
25#include <QtQmlModels/private/qtqmlmodelsglobal_p.h>
26#include <QtQml/QJSValue>
27#include <QtQml/QQmlListProperty>
36 Q_PROPERTY(
int columnCount READ columnCount NOTIFY columnCountChanged FINAL)
37 Q_PROPERTY(
int rowCount READ rowCount NOTIFY rowCountChanged FINAL)
56 Q_INVOKABLE void moveRow(
int fromRowIndex,
int toRowIndex,
int rows = 1);
89 class ColumnRoleMetadata
98 bool isStringRole =
false;
104 struct ColumnMetadata
111 enum NewRowOperationFlag {
118 ColumnRoleMetadata fetchColumnRoleData(
const QString &roleNameKey,
120 void fetchColumnMetadata();
122 bool validateRowType(
const char *functionName,
const QVariant &
row)
const;
123 bool validateNewRow(
const char *functionName,
const QVariant &
row,
124 int rowIndex, NewRowOperationFlag operation = OtherOperation)
const;
125 bool validateRowIndex(
const char *functionName,
const char *argumentName,
int rowIndex)
const;
129 bool componentCompleted =
false;
133 int mColumnCount = 0;
virtual Q_INVOKABLE int rowCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of rows under the given parent.
virtual Q_INVOKABLE bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Sets the role data for the item at index to value.
virtual QHash< int, QByteArray > roleNames() const
virtual Q_INVOKABLE int columnCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of columns for the children of the given parent.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
The QQmlParserStatus class provides updates on the QML parser state.
virtual void classBegin()=0
Invoked after class creation, but before any properties have been set.
virtual void componentComplete()=0
Invoked after the root component that caused this instantiation has completed construction.
void columnCountChanged()
QQmlListProperty< QQmlTableModelColumn > columns()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
#define QML_DECLARE_TYPE(TYPE)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QT_REQUIRE_CONFIG(feature)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent