qt5base-lts/tests/auto/gui
Christian Ehrlicher c7cbf21699 QPixmapCache: make sure to not overflow cache limit
The cost for the pixmap cache was calculated in bytes but
setCacheLimit() takes the size in kilobytes. This lead to the
situation that all values above 2097152 overflowed and disabled
the caching completely. Fix it by calculating the cost in
kilobytes as it is done in QGLContext.

Task-number: QTBUG-45293
Change-Id: Ib8dc2360c8f3201ce0b615a04c38b5ccaa8fc6cf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2018-04-10 18:45:27 +00:00
..
image QPixmapCache: make sure to not overflow cache limit 2018-04-10 18:45:27 +00:00
itemmodels QStandardItem: add more sanity checks on insertRow(s)/Column(s) 2018-03-07 18:36:15 +00:00
kernel Merge remote-tracking branch 'origin/5.11' into dev 2018-04-10 01:00:26 +02:00
math3d Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting Fix QPainter save/restore of clipping enabled state 2018-03-26 16:00:43 +00:00
qopengl Merge remote-tracking branch 'origin/5.10' into dev 2017-10-24 13:40:55 +02:00
qopenglconfig Fix tst_QOpenGlConfig for platforms with builtin test data 2017-06-19 07:05:59 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
text Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
util GLSL 1.00 ES must be selected using "#version 100" 2017-08-04 11:19:30 +00:00
gui.pro Basic Vulkan enablers 2017-03-17 16:12:03 +00:00