69 cursor =
other.cursor;
135 if (
i >= 0 &&
i < sorts.
size())
148 if (
i >= 0 &&
i < sorts.
size())
172#include "moc_qsqlindex.cpp"
qsizetype size() const noexcept
void append(parameter_type t)
The QSqlField class manipulates the fields in SQL database tables and views.
The QSqlIndex class provides functions to manipulate and describe database indexes.
void setName(const QString &name)
Sets \l name to name.
bool isDescending(int i) const
Returns true if field i in the index is sorted in descending order; otherwise returns false.
void setDescending(int i, bool desc)
If desc is true, field i is sorted in descending order.
QSqlIndex(const QString &cursorName=QString(), const QString &name=QString())
Constructs an empty index using the cursor name cursorname and index name name.
~QSqlIndex()
Destroys the object and frees any allocated resources.
void setCursorName(const QString &cursorName)
Sets \l cursorName to cursorName.
void append(const QSqlField &field)
Appends the field field to the list of indexed fields.
QSqlIndex & operator=(const QSqlIndex &other)
Move-assigns other to this QSqlIndex instance.
The QSqlRecord class encapsulates a database record.
QSqlField field(int i) const
Returns the field at position index.
void append(const QSqlField &field)
Append a copy of field field to the end of the record.
QSqlRecord & operator=(const QSqlRecord &other)
Sets the record equal to other.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.