4#ifndef QQMLCHANGESET_P_H
5#define QQMLCHANGESET_P_H
18#include <QtCore/qdebug.h>
19#include <QtCore/qvector.h>
20#include <QtQmlModels/private/qtqmlmodelsglobal_p.h>
57 this->moveId = moveId;
61 bool isMove()
const {
return moveId >= 0; }
82 void move(
int from,
int to,
int count,
int moveId);
91 bool isEmpty()
const {
return m_removes.empty() && m_inserts.empty() && m_changes.isEmpty(); }
The QQmlChangeSet class stores an ordered list of notifications about changes to a linear data set.
const QVector< Change > & removes() const
const QVector< Change > & changes() const
const QVector< Change > & inserts() const
cache insert(employee->id(), employee)
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
GLenum GLuint GLintptr offset
constexpr decltype(auto) qMakePair(T1 &&value1, T2 &&value2) noexcept(noexcept(std::make_pair(std::forward< T1 >(value1), std::forward< T2 >(value2))))
Q_QMLMODELS_PRIVATE_EXPORT QDebug operator<<(QDebug debug, const QQmlChangeSet::Change &change)
size_t qHash(const QQmlChangeSet::MoveKey &key)
bool operator==(const QQmlChangeSet::MoveKey &l, const QQmlChangeSet::MoveKey &r)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
settings remove("monkey")
MoveKey moveKey(int index) const
Change(int index, int count, int moveId=-1, int offset=0)
MoveKey(int moveId, int offset)