MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / remove

Method remove

gui/src/mapstackedwidget.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool MapStackedWidget::remove(QString key)
52{
53 QWidget *w = map.take(key);
54 if(w) {
55 // if(indexOf(w) == currentIndex())
56 // setCurrentIndex(0);
57 removeWidget(w);
58 } else {
59 qWarning(CAT_MAPSTACKWIDGET) << key << "not found in MapStackWidget. cannot remove";
60 return false;
61 }
62 qDebug(CAT_MAPSTACKWIDGET) << key << "removed from to stack";
63 return true;
64}
65
66bool MapStackedWidget::contains(QString key) { return map.contains(key); }
67

Callers 9

removeChannelMethod · 0.45
deleteChannelMethod · 0.45
removeChannelMethod · 0.45
removeNavigatorsMethod · 0.45
removeChannelMethod · 0.45
removeWidgetMethod · 0.45
SpinBoxAMethod · 0.45
setUnitsMethod · 0.45
computeChannelNamesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected