| 165 | } |
| 166 | |
| 167 | void WorkingSetController::showToolTip(WorkingSet* set, const QPoint& pos) |
| 168 | { |
| 169 | delete m_tooltip; |
| 170 | |
| 171 | auto* window = static_cast<KDevelop::MainWindow*>(Core::self()->uiControllerInternal()->activeMainWindow()); |
| 172 | |
| 173 | m_tooltip = new KDevelop::ActiveToolTip(window, pos); |
| 174 | auto* layout = new QVBoxLayout(m_tooltip); |
| 175 | layout->setContentsMargins(0, 0, 0, 0); |
| 176 | auto* widget = new WorkingSetToolTipWidget(m_tooltip, set, window); |
| 177 | layout->addWidget(widget); |
| 178 | m_tooltip->resize( m_tooltip->sizeHint() ); |
| 179 | |
| 180 | connect(widget, &WorkingSetToolTipWidget::shouldClose, m_tooltip.data(), &ActiveToolTip::close); |
| 181 | |
| 182 | ActiveToolTip::showToolTip(m_tooltip); |
| 183 | } |
| 184 | |
| 185 | void WorkingSetController::showGlobalToolTip() |
| 186 | { |
no test coverage detected