qt5base-lts/tests/auto/gui/image
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
..
qicoimageformat Merge remote-tracking branch 'origin/5.7' into dev 2016-05-23 21:09:46 +02:00
qicon Introduce QIcon::fallbackSearchPaths() 2018-01-15 10:12:22 +00:00
qiconhighdpi qt_findAtNxFile(): account for .9 (9-patch image) extensions 2017-06-24 21:24:53 +00:00
qimage QtGui: Add qt_imageToWinHBITMAP(), qt_imageFromWinHBITMAP() 2018-04-10 12:20:45 +00:00
qimageiohandler Updated license headers 2016-01-21 18:55:18 +00:00
qimagereader Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
qimagewriter Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qmovie Fix a crash when QMovie::speed is set to 0 2018-01-24 10:13:00 +00:00
qpicture Updated license headers 2016-01-21 18:55:18 +00:00
qpixmap Merge remote-tracking branch 'origin/5.11' into dev 2018-03-21 08:59:26 +01:00
qpixmapcache QPixmapCache: make sure to not overflow cache limit 2018-04-10 18:45:27 +00:00
image.pro Implement support for Scale directory key according to Icon Theme spec 2017-02-01 13:58:01 +00:00