636 indices =
indexHint(part, parent, order);
640 int high = indices.
to() + 1;
641 int low = indices.
from() - 1;
646 while (high - low > 1)
648 probe = (high + low) / 2;
680 high = indices.
to() + 1;
684 low = indices.
from() - 1;
688 while (high - low > 1)
690 probe = (high + low) / 2;
QString toString() const
Returns the variant as a QString if the variant has type() String , Bool , ByteArray ...
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
The QString class provides a Unicode character string.
bool matchHint(QString, const QModelIndex &, QMatchData *)
QIndexMapper indexHint(QString, const QModelIndex &, Qt::SortOrder)
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const =0
Returns the index of the item in the model specified by the given row, column and parent index...
QAbstractItemModel * sourceModel() const
Returns the model that contains the data that is available through the proxy model.
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const =0
Returns the data stored under the given role for the item referred to by the index.
static int cmp(const ushort *s1, const ushort *s2, size_t len)
The QAbstractItemModel class provides the abstract interface for item model classes.
void saveInCache(QString, const QModelIndex &, const QMatchData &)
int compare(const QString &s) const
The QModelIndex class is used to locate data in a data model.
Qt::SortOrder sortOrder(const QModelIndex &) const
bool lookupCache(QString part, const QModelIndex &parent, QMatchData *m)