4#ifndef QQMLMODELINDEXVALUETYPE_P_H
5#define QQMLMODELINDEXVALUETYPE_P_H
18#include <QtCore/qabstractitemmodel.h>
19#include <QtCore/qitemselectionmodel.h>
20#include <QtQml/qqml.h>
21#include <QtCore/private/qglobal_p.h>
46 {
return v.
data(role); }
48 inline int row() const noexcept {
return v.row(); }
49 inline int column() const noexcept {
return v.column(); }
51 inline bool isValid() const noexcept {
return v.
isValid(); }
82 {
return QLatin1String(
"QPersistentModelIndex") + QQmlModelIndexValueType::propertiesString(
v); }
85 {
return v.
data(role); }
87 inline int row()
const {
return v.row(); }
88 inline int column()
const {
return v.column(); }
90 inline bool isValid()
const {
return v.
isValid(); }
122 {
return v.contains(
index); }
124 {
return v.contains(
row,
column, parentIndex); }
126 {
return v.intersects(
other); }
130 inline int top()
const {
return v.top(); }
131 inline int left()
const {
return v.left(); }
132 inline int bottom()
const {
return v.bottom(); }
133 inline int right()
const {
return v.right(); }
134 inline int width()
const {
return v.width(); }
135 inline int height()
const {
return v.height(); }
140 inline bool isValid()
const {
return v.isValid(); }
141 inline bool isEmpty()
const {
return v.isEmpty(); }
173#undef QLISTVALUETYPE_INVOKABLE_API
QItemSelectionRange intersected(const QItemSelectionRange &other) const
QModelIndex parent() const
Returns the parent of the model index, or QModelIndex() if it has no parent.
constexpr bool isValid() const noexcept
Returns {true} if this model index is valid; otherwise returns {false}.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void * data()
Returns a pointer to the contained object as a generic void* that can be written to.
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble GLdouble top
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
#define QML_SEQUENTIAL_CONTAINER(VALUE_TYPE)
#define QML_EXTENDED(EXTENDED_TYPE)
#define QML_FOREIGN(FOREIGN_TYPE)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
QLatin1StringView QLatin1String
unsigned long long quint64
QPersistentModelIndex & topLeft() const
QPersistentModelIndex topLeft
QAbstractItemModel * model() const
Q_INVOKABLE QString toString() const
QPersistentModelIndex & bottomRight() const
Q_INVOKABLE bool contains(int row, int column, const QModelIndex &parentIndex) const
QModelIndex parent() const
Q_INVOKABLE bool contains(const QModelIndex &index) const
Q_INVOKABLE bool intersects(const QItemSelectionRange &other) const
Q_INVOKABLE QItemSelectionRange intersected(const QItemSelectionRange &other) const
QPersistentModelIndex bottomRight
QAbstractItemModel * model
QAbstractItemModel * model
Q_INVOKABLE QString toString() const
static QPersistentModelIndex toPersistentModelIndex(const QModelIndex &index)
Q_REVISION(6, 7) Q_INVOKABLE QVariant data(int role
Q_INVOKABLE QString toString() const
QAbstractItemModel * model