| 19 | } |
| 20 | |
| 21 | bool Valgrind::start() |
| 22 | { |
| 23 | qInfo() << __FUNCTION__; |
| 24 | using namespace dpfservice; |
| 25 | auto &ctx = dpfInstance.serviceContext(); |
| 26 | auto windowService = ctx.service<WindowService>(WindowService::name()); |
| 27 | |
| 28 | if (windowService) { |
| 29 | ValgrindBar *valgrindBar = new ValgrindBar(); |
| 30 | windowService->addContextWidget(tr("&Valgrind"), new AbstractWidget(valgrindBar), false); |
| 31 | } |
| 32 | |
| 33 | ValgrindRunner::instance()->initialize(); |
| 34 | |
| 35 | return true; |
| 36 | } |
| 37 | |
| 38 | dpf::Plugin::ShutdownFlag Valgrind::stop() |
| 39 | { |
no test coverage detected