| 213 | } |
| 214 | |
| 215 | void Desktop::RecalculateWidgetLevels() { |
| 216 | auto children_size = m_children.size(); |
| 217 | auto current_level = 0; |
| 218 | |
| 219 | std::reverse_iterator<WidgetsList::iterator> iter( std::end( m_children ) ); |
| 220 | std::reverse_iterator<WidgetsList::iterator> finish( std::begin( m_children ) ); |
| 221 | |
| 222 | for( ; iter != finish; ++iter ) { |
| 223 | (*iter)->SetHierarchyLevel( current_level ); |
| 224 | (*iter)->Invalidate(); |
| 225 | current_level += std::numeric_limits<int>::max() / static_cast<int>( children_size ); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | bool Desktop::SetProperties( const std::string& properties ) { |
| 230 | if( !m_context.GetEngine().SetProperties( properties ) ) { |
nothing calls this directly
no test coverage detected