MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / removeId

Method removeId

src/openms_gui/source/VISUAL/EnhancedTabBar.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 }
103
104 void EnhancedTabBar::removeId(int id)
105 {
106 for (int i = 0; i < this->count(); ++i)
107 {
108 if (tabData(i).toInt() == id)
109 {
110 removeTab(i);
111 return;
112 }
113 }
114 throw Exception::Precondition(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, String("Tab with ID ") + id + " is already gone!");
115 }
116
117 void EnhancedTabBar::show(int id)
118 {

Callers 2

TOPPViewBaseMethod · 0.80
TOPPASBaseMethod · 0.80

Calls 3

countMethod · 0.80
toIntMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected