qt6-bb10/tests/auto/corelib
Mathias Hasselmann 50e2db6a75 Add first/last accessors to QMap
QMap explicitly sorts its entries by key value. For an ordered container
it's (often?) useful to access the first or last entry, for instance to
quickly compute the next key of the mapping. The first entry is easily
accessible by the STL begin() method, but for accessing the last entry
pretty ugly iterator arithmetics must be applied: *(end() - 1). With
their first() and last() accessors the container classes QList and
QVector provide a much nicer method of accessing extrema, so for
consistency this syntactical sugar also should be applied to QMap.

Change-Id: Ibd544acbad8c3ac16f12a1e74362207ea1694375
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
2013-09-08 16:13:16 +02:00
..
animation Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
codecs Ensure that the user codecs are listed in QTextCodec::availableCodecs 2013-07-21 07:30:48 +02:00
global Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
io QDateTime - Change debug output to ISO Format 2013-09-06 18:08:56 +02:00
itemmodels Make the QItemSelectionModel test widgets-independent. 2013-08-13 16:34:16 +02:00
json Add QJsonValue::toInt(). 2013-08-27 08:01:29 +02:00
kernel Make the automatic 1arg and 2arg metatype macros work with namespaced Qt. 2013-09-06 16:18:37 +02:00
mimetypes Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
plugin Merge remote-tracking branch 'origin/stable' into dev 2013-08-27 22:51:09 +02:00
statemachine Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
thread Add an advisory interruption mechanism to QThread. 2013-09-05 08:20:18 +02:00
tools Add first/last accessors to QMap 2013-09-08 16:13:16 +02:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00