71 : cursor(cursorname), nm(name)
196 for (
int i = 0; i <
count(); ++i) {
224 for (
int i = 0; i <
count(); ++i)
The QSqlIndex class provides functions to manipulate and describe database indexes.
QString cursorName() const
Returns the name of the cursor which the index is associated with.
#define QT_END_NAMESPACE
This macro expands to.
QSqlIndex(const QString &cursorName=QString(), const QString &name=QString())
Constructs an empty index using the cursor name cursorname and index name name.
QString createField(int i, const QString &prefix, bool verbose) const
Creates a string representing the field number i using prefix prefix.
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.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QSqlRecord class encapsulates a database record.
The QString class provides a Unicode character string.
QSqlRecord & operator=(const QSqlRecord &other)
Sets the record equal to other.
~QSqlIndex()
Destroys the object and frees any allocated resources.
QString name() const
Returns the name of the field.
static QString toString(Register *reg, int type, bool *ok=0)
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
The QStringList class provides a list of strings.
void setName(const QString &name)
Sets the name of the index to name.
void setCursorName(const QString &cursorName)
Sets the name of the cursor that the index is associated with to cursorName.
void setDescending(int i, bool desc)
If desc is true, field i is sorted in descending order.
QSqlField field(int i) const
Returns the field at position index.
int count() const
Returns the number of fields in the record.
int size() const
Returns the number of items in the list.
void append(const QSqlField &field)
Append a copy of field field to the end of the record.
bool isDescending(int i) const
Returns true if field i in the index is sorted in descending order; otherwise returns false...
The QSqlField class manipulates the fields in SQL database tables and views.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
QString name() const
Returns the name of the index.