Iterator it = findItemAtPos( yPos );
if( it != m_itOver )
{
- if( it != m_rTree.end() )
- it->setExpanded( true );
m_itOver = it;
needRefresh = true;
}
void CtrlTree::makeImage()
{
- stats_TimerStart( getIntf(), "[Skins] Playlist image",
- STATS_TIMER_SKINS_PLAYTREE_IMAGE );
delete m_pImage;
// Get the size of the control
const Position *pPos = getPosition();
if( !pPos )
- {
- stats_TimerStop( getIntf(), STATS_TIMER_SKINS_PLAYTREE_IMAGE );
return;
- }
int width = pPos->getWidth();
int height = pPos->getHeight();
m_rFont.drawString( *pStr, color, width-bitmapWidth*depth );
if( !pText )
{
- stats_TimerStop( getIntf(), STATS_TIMER_SKINS_PLAYTREE_IMAGE );
return;
}
if( it->size() )
delete pText;
}
}
- stats_TimerStop( getIntf(), STATS_TIMER_SKINS_PLAYTREE_IMAGE );
}
CtrlTree::Iterator CtrlTree::findItemAtPos( int pos )