73 m_stateData =
new StateData();
75 m_stateData->flags = state.state();
77 if ( m_stateData->flags & QPaintEngine::DirtyPen )
78 m_stateData->pen = state.pen();
80 if ( m_stateData->flags & QPaintEngine::DirtyBrush )
81 m_stateData->brush = state.brush();
83 if ( m_stateData->flags & QPaintEngine::DirtyBrushOrigin )
84 m_stateData->brushOrigin = state.brushOrigin();
86 if ( m_stateData->flags & QPaintEngine::DirtyFont )
87 m_stateData->font = state.font();
89 if ( m_stateData->flags & QPaintEngine::DirtyBackground )
91 m_stateData->backgroundMode = state.backgroundMode();
92 m_stateData->backgroundBrush = state.backgroundBrush();
95 if ( m_stateData->flags & QPaintEngine::DirtyTransform )
96 m_stateData->transform = state.transform();
98 if ( m_stateData->flags & QPaintEngine::DirtyClipEnabled )
99 m_stateData->isClipEnabled = state.isClipEnabled();
101 if ( m_stateData->flags & QPaintEngine::DirtyClipRegion )
103 m_stateData->clipRegion = state.clipRegion();
104 m_stateData->clipOperation = state.clipOperation();
107 if ( m_stateData->flags & QPaintEngine::DirtyClipPath )
109 m_stateData->clipPath = state.clipPath();
110 m_stateData->clipOperation = state.clipOperation();
113 if ( m_stateData->flags & QPaintEngine::DirtyHints )
114 m_stateData->renderHints = state.renderHints();
116 if ( m_stateData->flags & QPaintEngine::DirtyCompositionMode )
117 m_stateData->compositionMode = state.compositionMode();
119 if ( m_stateData->flags & QPaintEngine::DirtyOpacity )
120 m_stateData->opacity = state.opacity();