mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Extracted event management from GuiHandler and CIntObject
This commit is contained in:
@ -35,7 +35,7 @@ std::shared_ptr<CIntObject> CObjectList::createItem(size_t index)
|
||||
|
||||
item->recActions = defActions;
|
||||
addChild(item.get());
|
||||
if (active)
|
||||
if (isActive())
|
||||
item->activate();
|
||||
return item;
|
||||
}
|
||||
@ -70,7 +70,7 @@ void CTabbedInt::reset()
|
||||
activeTab = createItem(activeID);
|
||||
activeTab->moveTo(pos.topLeft());
|
||||
|
||||
if(active)
|
||||
if(isActive())
|
||||
redraw();
|
||||
}
|
||||
|
||||
@ -107,7 +107,7 @@ void CListBox::updatePositions()
|
||||
(elem)->moveTo(itemPos);
|
||||
itemPos += itemOffset;
|
||||
}
|
||||
if (active)
|
||||
if (isActive())
|
||||
{
|
||||
redraw();
|
||||
if (slider)
|
||||
|
Reference in New Issue
Block a user