MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / resetUI

Method resetUI

src/plugins/codeporting/codeportingmanager.cpp:146–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void CodePortingManager::resetUI()
147{
148 auto &ctx = dpfInstance.serviceContext();
149 auto windowService = ctx.service<WindowService>(WindowService::name());
150
151 QString group = "Porting";
152
153 if (!windowService->hasContextWidget(tr("C&ode Porting"))) {
154 // Add output pane
155 windowService->addContextWidget(tr("C&ode Porting"), new AbstractWidget(new CodePortingWidget()), false);
156 }
157
158 outputPane->clearContents();
159 uiController.switchContext(tr("C&ode Porting"));
160}

Callers

nothing calls this directly

Calls 4

hasContextWidgetMethod · 0.80
addContextWidgetMethod · 0.80
nameFunction · 0.50
clearContentsMethod · 0.45

Tested by

no test coverage detected