| 386 | //----------------------------------------------------------------------------- |
| 387 | |
| 388 | void GuiTreeViewCtrl::Item::setObject(SimObject *obj) |
| 389 | { |
| 390 | if(!mState.test(InspectorData)) |
| 391 | { |
| 392 | return; |
| 393 | } |
| 394 | |
| 395 | _disconnectMonitors(); |
| 396 | mInspectorInfo.mObject = obj; |
| 397 | _connectMonitors(); |
| 398 | |
| 399 | // Update Render Data |
| 400 | if( !mProfile.isNull() ) |
| 401 | mDataRenderWidth = getDisplayTextWidth( mProfile->mFont ); |
| 402 | } |
| 403 | |
| 404 | //----------------------------------------------------------------------------- |
| 405 |
no test coverage detected