qt5base-lts/tests/auto
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
..
android Fix clean-up code in Android autotest script 2013-08-05 14:53:18 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake CMake: Allow specifying a TARGET in invocations of macros. 2013-08-21 16:39:55 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:25 +01:00
corelib Add first/last accessors to QMap 2013-09-08 16:13:16 +02:00
dbus Merge remote-tracking branch 'origin/stable' into dev 2013-08-27 22:51:09 +02:00
gui QPluginLoader: add 'staticPlugins' function 2013-09-04 09:38:35 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
opengl Fixed tst_qgl for fullscreen platforms 2013-08-07 09:01:36 +02:00
other Merge remote-tracking branch 'origin/stable' into dev 2013-08-14 09:06:31 +02:00
printsupport QPrintPreviewDialog: Prevent changing of page in resize handling. 2013-05-23 09:31:27 +02:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql Remove Nokia-domains in commented-out test code. 2013-07-12 12:41:30 +02:00
testlib Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
tools Merge remote-tracking branch 'origin/stable' into dev 2013-08-27 22:51:09 +02:00
widgets Fix layouts with expanding items with maximum size 2013-09-04 15:09:47 +02:00
xml tests: Make the QT assignments more explicit 2013-08-21 19:05:52 +02:00
auto.pro Make the CMake tests run sequentially, not in parallel. 2013-07-08 14:48:03 +02:00
network-settings.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00