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

Method start

src/plugins/performance/performance.cpp:27–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool Performance::start()
28{
29 qInfo() << __FUNCTION__;
30
31 if (!::mainWindow) {
32 ::mainWindow = new MainWindow();
33 }
34
35 auto &ctx = dpfInstance.serviceContext();
36 WindowService *windowService = ctx.service<WindowService>(WindowService::name());
37
38 if (::mainWindow && windowService) {
39 windowService->addContextWidget(QString(tr("&Performance")), new AbstractWidget(::mainWindow), false);
40 }
41
42 return true;
43}
44
45dpf::Plugin::ShutdownFlag Performance::stop()
46{

Callers

nothing calls this directly

Calls 3

addContextWidgetMethod · 0.80
nameFunction · 0.50
QStringClass · 0.50

Tested by

no test coverage detected