G: > This time I tried caching the previews in pixmaps. I haven't tested this yet, but if you're talking about cacheing the entire preview for a segment, then a QPixmap won't do because its width is limited. A 1- or 8-bit QImage would be necessary (they can be any size).
In the longer term storing an image is likely a better idea than storing a list of rectangles. It's only by coincidence that we can really get away with using rectangles like this for audio previews at the moment (because our previews are so limited) and this will surely change some time, for previews at high zoom levels. Of course, an image of an entire segment at the highest zoom level may bring its own problems in terms of memory usage. Chris ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
