VIEW_GROUP objects redraw itself after a change

This commit is contained in:
Maciej Suminski 2016-06-21 13:47:12 +02:00
parent 86b906463f
commit 74d53e517c
2 changed files with 6 additions and 1 deletions

View File

@ -55,18 +55,21 @@ VIEW_GROUP::~VIEW_GROUP()
void VIEW_GROUP::Add( VIEW_ITEM* aItem )
{
m_items.insert( aItem );
ViewUpdate();
}
void VIEW_GROUP::Remove( VIEW_ITEM* aItem )
{
m_items.erase( aItem );
ViewUpdate();
}
void VIEW_GROUP::Clear()
{
m_items.clear();
ViewUpdate();
}
@ -128,7 +131,8 @@ void VIEW_GROUP::FreeItems()
{
delete item;
}
m_items.clear();
Clear();
}

View File

@ -131,6 +131,7 @@ public:
inline virtual void SetLayer( int aLayer )
{
m_layer = aLayer;
ViewUpdate();
}
/**