#include "private/qabstractscrollarea_p.h"
#include "private/qabstractitemmodel_p.h"
#include "QtGui/qapplication.h"
#include "QtGui/qevent.h"
#include "QtGui/qmime.h"
#include "QtGui/qpainter.h"
#include "QtCore/qpair.h"
#include "QtGui/qregion.h"
#include "QtCore/qdebug.h"
#include "QtCore/qbasictimer.h"
#include "QtCore/qelapsedtimer.h"
#include <qvector.h>
Go to the source code of this file.
◆ QEditorIndexHash
◆ QIndexEditorHash
◆ QItemViewPaintPair
◆ QItemViewPaintPairs
◆ qBinarySearch()
template<typename T >
int qBinarySearch |
( |
const QVector< T > & |
vec, |
|
|
const T & |
item, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
|
inline |
Definition at line 443 of file qabstractitemview_p.h.
445 int i = (start +
end + 1) >> 1;
446 while (
end - start > 0) {
447 if (vec.
at(i) > item)
451 i = (start +
end + 1) >> 1;
const T & at(int i) const
Returns the item at index position i in the vector.
static const KeyPair *const end