summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativepixmapcache.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix silly "will be initialised after" warning.Thiago Macieira2010-11-261-1/+1
|
* Fix network request completion crashing on a canceled pixmap requestJoona Petrell2010-10-211-2/+3
| | | | | Task-number: QT-3957 reviewed-by: Aaron Kennedy
* Don't overflow the unreferenced cost counterAaron Kennedy2010-09-021-7/+9
| | | | QTBUG-13345
* Only modify pixmap cache reply when protected by a mutexAaron Kennedy2010-08-121-1/+1
| | | | QTBUG-12729
* Limit the pixmap cache in space as well as in time.Aaron Kennedy2010-08-031-7/+26
| | | | QTBUG-12590
* Fixes undeleted timers (and endless warning from the event loop aboutAaron Kennedy2010-07-231-1/+1
| | | | | | | invalid timers). Authored-by: Daniel Molkentin Reviewed-by: Marco Bubke
* Ensure redirects (and indeed all reply process) is done in the right thread.Warwick Allison2010-07-211-23/+32
| | | | | | | i.e. the thread with the QNAM the original reply was created in. Task-number: QTBUG-12302 Reviewed-by: Aaron Kennedy
* Don't show warning for attempts to load pixmaps asynchronouslyBea Lam2010-07-081-2/+1
| | | | | (should be handled by image providers, elements shouldn't have to know about the capabilities)
* Don't double delete cancelled pixmap cache requestsAaron Kennedy2010-07-081-3/+9
| | | | QTBUG-11954
* Extend QDeclarativeImageProvider to support QPixmap loading andBea Lam2010-07-081-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
* Make declarative pixmap cache easier to useAaron Kennedy2010-07-051-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
* 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.