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>
45 inline int row() const noexcept {
return v.row(); }
46 inline int column() const noexcept {
return v.column(); }
48 inline bool isValid() const noexcept {
return v.isValid(); }
81 inline int row()
const {
return v.row(); }
82 inline int column()
const {
return v.column(); }
84 inline bool isValid()
const {
return v.isValid(); }
116 {
return v.contains(
index); }
118 {
return v.contains(
row,
column, parentIndex); }
120 {
return v.intersects(
other); }
124 inline int top()
const {
return v.top(); }
125 inline int left()
const {
return v.left(); }
126 inline int bottom()
const {
return v.bottom(); }
127 inline int right()
const {
return v.right(); }
128 inline int width()
const {
return v.width(); }
129 inline int height()
const {
return v.height(); }
134 inline bool isValid()
const {
return v.isValid(); }
135 inline bool isEmpty()
const {
return v.isEmpty(); }
167#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.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble GLdouble top
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_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_FOREIGN(FOREIGN_TYPE)
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() const noexcept
static QString propertiesString(const QModelIndex &idx)
QModelIndex parent() const
QAbstractItemModel * model
int column() const noexcept
Q_INVOKABLE QString toString() const
quint64 internalId() const
static QPersistentModelIndex toPersistentModelIndex(const QModelIndex &index)
bool isValid() const noexcept
QModelIndex parent() const
Q_INVOKABLE QString toString() const
quint64 internalId() const
QAbstractItemModel * model
QAbstractItemModel * model() const