69 cursor =
other.cursor;
133 if (
i >= 0 &&
i < sorts.
size())
146 if (
i >= 0 &&
i < sorts.
size())
157QString QSqlIndex::createField(
int i,
const QString& prefix,
bool verbose)
const
qsizetype size() const noexcept
void append(parameter_type t)
The QSqlField class manipulates the fields in SQL database tables and views.
QString name() const
Returns the name of the field.
The QSqlIndex class provides functions to manipulate and describe database indexes.
QString name() const
Returns the name of the index.
void setName(const QString &name)
Sets the name of the index 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.
QString cursorName() const
Returns the name of the cursor which the index is associated with.
void setCursorName(const QString &cursorName)
Sets the name of the cursor that the index is associated with to cursorName.
void append(const QSqlField &field)
Appends the field field to the list of indexed fields.
QSqlIndex & operator=(const QSqlIndex &other)
Sets the index equal to other.
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
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.