MCPcopy Create free account
hub / github.com/Linloir/GraphBuilder / AddItem

Method AddItem

customWidgets.cpp:268–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void singleSelectGroup::AddItem(selectionItem *item){
269 selections.push_back(item);
270 this->setFixedHeight(this->height() + middleSpacing + item->height());
271 mainLayout->addWidget(item);
272 if(selectedID == -1){
273 item->Select();
274 selectedID = 0;
275 }
276 connect(item, SIGNAL(selected(selectionItem*)), this, SLOT(changeSelection(selectionItem*)));
277 emit itemChange();
278}
279
280void singleSelectGroup::RemoveItem(selectionItem *item){
281 int id = selections.indexOf(item);

Callers 2

InitMethod · 0.80
CreateSettingsMethod · 0.80

Calls 2

addWidgetMethod · 0.80
SelectMethod · 0.80

Tested by

no test coverage detected