| 1221 | //----------------------------------------------------------------------------- |
| 1222 | |
| 1223 | void GuiControl::inspectPostApply() |
| 1224 | { |
| 1225 | // To not require every control to hook onto inspectPostApply to make |
| 1226 | // all changed properties take effect, just put controls through a fake |
| 1227 | // sleep&wake sequence. This should generally get most property changes |
| 1228 | // to show. |
| 1229 | // |
| 1230 | // Don't do this with the canvas. |
| 1231 | |
| 1232 | if( mAwake && !dynamic_cast< GuiCanvas* >( this ) ) |
| 1233 | { |
| 1234 | bool isContainer = mIsContainer; |
| 1235 | |
| 1236 | onSleep(); |
| 1237 | onWake(); |
| 1238 | |
| 1239 | mIsContainer = isContainer; |
| 1240 | } |
| 1241 | } |
| 1242 | |
| 1243 | //============================================================================= |
| 1244 | // Layout. |
no outgoing calls