| 363 | } |
| 364 | |
| 365 | UITooltip* UIWidget::createTooltip() { |
| 366 | if ( NULL != mTooltip ) |
| 367 | return mTooltip; |
| 368 | |
| 369 | mTooltip = UITooltip::New(); |
| 370 | mTooltip->setVisible( false )->setEnabled( false ); |
| 371 | mTooltip->setTooltipOf( this ); |
| 372 | if ( !mTooltipText.empty() ) |
| 373 | mTooltip->setText( mTooltipText ); |
| 374 | return mTooltip; |
| 375 | } |
| 376 | |
| 377 | void UIWidget::onChildCountChange( Node* child, const bool& removed ) { |
| 378 | UINode::onChildCountChange( child, removed ); |
no test coverage detected