Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
-
ff9818135 (dev), e5f973838 (dev), cb58eadef (dev), e70cc743b (dev), 16ed137ef (dev), 43e2315ff (dev), 799a51586 (dev), 91d16c852 (dev), 75617efe2 (dev), a4d4d04bb (dev), cb9d8226d (dev), 1ad9330a9 (dev), b7a47d330 (dev)
Description
The styles, especially fusion style, is using QPixmapCache various ways. There is even a macro to simplify the usage.
All of them lack a generic usage without all the boilerplate code needed around.
The idea is to add a new private class QCachedPainter which is responsible for the caching through QPixmapCache and transparently redirects the painting code to the pixmap for QPixmapCache.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-129680 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
601776,3 | QFusionStyle preserve precision in arrow rectangle | dev | qt/qtbase | Status: NEW | -1 | 0 |
601911,1 | QFusionStyle: draw arrows w/o antialiasing | dev | qt/qtbase | Status: NEW | -1 | 0 |
592251,16 | Widgets/Style: add QCachedPainter | dev | qt/qtbase | Status: MERGED | +2 | 0 |
592992,13 | Fusion style: use QCachedPainter | dev | qt/qtbase | Status: MERGED | +2 | 0 |
592994,10 | QStyleHelper: use QCachedPainter for drawDial() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
593664,7 | Fusion style: use QCachedPainter for CC_Slider | dev | qt/qtbase | Status: MERGED | +2 | 0 |
593665,6 | QStyle: remove now unneeded macros for QPixmapCache | dev | qt/qtbase | Status: MERGED | +2 | 0 |
595575,8 | Fusion style: cleanup drawPrimitive() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
595576,7 | Fusion style: cleanup drawControl() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
595577,7 | Fusion style: cleanup drawComplexControl() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
601987,2 | FusionStyle: fix QCachedPainter usage for PE_PanelButtonCommand | dev | qt/qtbase | Status: MERGED | +2 | 0 |
601990,2 | QCachedPainter: add and use pixmapRect() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
602657,2 | QCachedPainter: fix pixmapRect() for dpr != 1 | dev | qt/qtbase | Status: MERGED | +2 | 0 |
603110,2 | QStyleHelper/QCachedPainter: don't use AntiAliased painting by default | dev | qt/qtbase | Status: MERGED | +2 | 0 |
603425,2 | Disable anti-aliasing in QCachedPainter | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
604578,3 | QFusionStyle: Use the generated pixmap key for the ComboBox | dev | qt/qtbase | Status: MERGED | +2 | 0 |