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

Method getWidget

src/openms_gui/source/VISUAL/EnhancedWorkspace.cpp:105–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 /// Returns nullptr if window is not present
104
105 EnhancedTabBarWidgetInterface* EnhancedWorkspace::getWidget(int id) const
106 {
107 for (const auto& sub_window : this->subWindowList())
108 {
109 EnhancedTabBarWidgetInterface* w = dynamic_cast<EnhancedTabBarWidgetInterface*>(sub_window->widget());
110 //cout << " Tab " << i << ": " << w->window_id << endl;
111 if (w != nullptr && w->getWindowId() == id)
112 {
113 return w;
114 }
115 }
116 return nullptr;
117 }
118
119 void EnhancedWorkspace::dragEnterEvent(QDragEnterEvent * event)
120 {

Callers 4

addDataMethod · 0.80
closeByTabMethod · 0.80
showWindowMethod · 0.80
window_Method · 0.80

Calls 1

getWindowIdMethod · 0.80

Tested by

no test coverage detected