summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativepixmapcache.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Only modify pixmap cache reply when protected by a mutexAaron Kennedy2010-08-181-1/+1
| | | | | QTBUG-12729 (cherry picked from commit ee7c3b576ced47d3b68da1913cdf6995144bddd2)
* Limit the pixmap cache in space as well as in time.Aaron Kennedy2010-08-041-7/+26
| | | | | QTBUG-12590 (cherry picked from commit 1fc6cab93ba2d067fadcd0979640c32aa1d5ae4a)
* Copied Qt QML 4.7 branch to release.Toby Tomkins2010-07-271-26/+34
| | | | Reviewed-by: MArtin Jones
* Don't double delete cancelled pixmap cache requestsAaron Kennedy2010-07-131-3/+9
| | | | | QTBUG-11954 (cherry picked from commit cec6d01d17e39af6e8a139156a3b51fd45558a50)
* Extend QDeclarativeImageProvider to support QPixmap loading andBea Lam2010-07-131-18/+67
| | | | | | | | | | | synchronous loading of QImages. (QPixmaps can only be created in the main thread so they will always be loaded synchronously). This changes request() to requestImage() and adds requestPixmap() for pixmap support. Task-number: QTBUG-11989 (cherry picked from commit a258456bcb35ec4211751a702ea94a1881d82a07)
* Make declarative pixmap cache easier to useAaron Kennedy2010-07-131-430/+685
| | | | | | | | | | | | | | | | | | The QDeclarativePixmapCache was both slow, and very trickey to use correctly. Many QML elements did not correctly cancel outstanding requests, which leads to pixmaps leaking indefinately. Other elements, such as Text, were subject to race conditions that meant they may never actually load all their images. QDeclarativePixmap is a single class than encapsulates the action of fetching a pixmap, as well as the pixmap itself and the responsibility of canceling outstanding requests. Rather than relying on Qt's pixmap cache that doesn't cache all the information QML needs, QDeclarativePixmap implements its own cache, that correctly degrades over time (unlike QPixmapCache that can stop expiring items in some conditions). Reviewed-by: Warwick Allison (cherry picked from commit 09f07b98dfdaec2e48749768b967a48e588d3f7f)
* Plug QdeclarativePixmapCache canceled request leak.Martin Jones2010-06-301-27/+29
| | | | Task-number: QTBUG-11827
* Ensure sourcesize is in pixmap cache key.Warwick Allison2010-06-241-0/+6
| | | | Task-number: QTBUG-11645
* Move copies of toLocalFileOrQrc() to QDeclarativeEnginePrivateBea Lam2010-05-241-10/+2
|
* Don't pass sequential (QNetworkReply) to image reader, it doesn't work well ↵Warwick Allison2010-05-121-1/+5
| | | | | | enough. Work around QTBUG-10622
* Correctly support translation in QDeclarativePixmapCacheWarwick Allison2010-04-161-5/+5
|
* Compile without Qt3 support.Yann Bodson2010-04-151-1/+1
|
* Use qmlInfo for image loading errors, not qWarning().Warwick Allison2010-04-151-11/+23
| | | | Task-number: QTBUG-9908
* Remove QT_VERSION checks in QMLAaron Kennedy2010-04-091-7/+0
| | | | We only support Qt 4.7 now.
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-1/+1
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Make qmlpixmapcache thread shutdown cleanerMartin Jones2010-03-301-12/+6
| | | | | | | | | | | | | | | | | Change to Thiago's method: QThread::quit() is *not* thread-safe, so we mustn't call it from outside the QThread that the QThread holds. Unlike other QObjects, this method and some others must not be called from the thread they have affinity to. So add a hack to call it in the auxiliary thread. Do that by connecting a dummy QObject's destroyed() signal to the quit() slot in a DirectConnection, then move the object to the thread. When we call deleteLater(), this will cause the thread's event loop to delete the object, which in turn calls quit() in the actual thread. Reviewed-by: Thiago Macieira
* Allow just one dimension to be set, the other scaled accordinglyWarwick Allison2010-03-291-3/+11
| | | | Task-number: QTBUG-8984
* Make sure the image reader thread is shutdown properlyMartin Jones2010-03-291-2/+14
| | | | | Prevents deadlock on shutdown for very shortlived runs, e.g. autotests
* Source resizing for QDeclarativeImageProvider too.Warwick Allison2010-03-281-1/+3
| | | | (fixes test too)
* Use QThread IdlePriority rather than linux platform code.Martin Jones2010-03-261-14/+1
| | | | Task-number: QTBUG-9032
* Control of image rendered size (esp. SVG).Warwick Allison2010-03-261-57/+115
| | | | | | | Add Translate transform. Image::sourceWidth and Image::sourceHeight read/write properties. Task-number: QTBUG-8984
* Remove dead performance measurement code from QMLAaron Kennedy2010-03-221-2/+0
|
* URL redirection for normal images.Warwick Allison2010-03-101-6/+35
| | | | Task-number: QTBUG-7515
* Add an "asynchonous" property to Image.Martin Jones2010-02-241-35/+66
| | | | | Allows loading/decoding local images in an asynchronous thread (already the case for network images).
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-241-0/+611
QDeclarativeXXX.