Details
-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
It would be nice to have a small RAII helper class which makes sure that QPainter::restore() is called for every QPainter::save(). Or since QPainter::save()/restore() is a heavy operation, a helper class which only saves the states which are getting modified.
The first user should be the internal Qt styles. When it becomes mature, it can become a public class for wider usage.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-129973 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
595907,3 | Add helper class QPainterStateSaver | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
597221,2 | QCommonStyle: use QPainterStateSaver | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
597222,2 | QDrawUtil: use QPainterStateSaver | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
597223,2 | FusionStyle: use QPainterStateSaver | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |