| 654 | //----------------------------------------------------------------------------- |
| 655 | |
| 656 | bool GuiTreeViewCtrl::Item::isParent() const |
| 657 | { |
| 658 | if(mState.test(VirtualParent)) |
| 659 | { |
| 660 | if( !isInspectorData() ) |
| 661 | return true; |
| 662 | |
| 663 | // Does our object have any children? |
| 664 | if(mInspectorInfo.mObject) |
| 665 | { |
| 666 | SimSet *pSimSet = dynamic_cast<SimSet*>( (SimObject*)mInspectorInfo.mObject); |
| 667 | if ( pSimSet != NULL && pSimSet->size() > 0) |
| 668 | return pSimSet->size(); |
| 669 | } |
| 670 | } |
| 671 | |
| 672 | // Otherwise, just return whether the child list is populated. |
| 673 | return mChild; |
| 674 | } |
| 675 | |
| 676 | //----------------------------------------------------------------------------- |
| 677 |
no test coverage detected