CComponentsItem/CComponentsForm: add property focus

Specifies that some certain operations especially eg. exec events for
that item are possible.
This commit is contained in:
2014-09-02 08:35:12 +02:00
committed by [CST] Focus
parent 5ae495716e
commit 0c0e0e85ff
3 changed files with 19 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ void CComponentsForm::addCCItem(CComponentsItem* cc_Item)
//assign item index
int new_index = genIndex();
cc_Item->setIndex(new_index);
cc_Item->setFocus(true);
dprintf(DEBUG_DEBUG, "\t%s-%d parent index = %d, assigned index ======> %d\n", __func__, __LINE__, cc_item_index, new_index);