| 25 | } |
| 26 | |
| 27 | bool 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 | |
| 45 | dpf::Plugin::ShutdownFlag Performance::stop() |
| 46 | { |
nothing calls this directly
no test coverage detected