| 136 | } |
| 137 | |
| 138 | void WorkingSetToolButton::showTooltip(const QPoint& globalPos) |
| 139 | { |
| 140 | Q_ASSERT(m_set); |
| 141 | static WorkingSetToolButton* oldTooltipButton; |
| 142 | |
| 143 | WorkingSetController* controller = Core::self()->workingSetControllerInternal(); |
| 144 | |
| 145 | if(controller->tooltip() && oldTooltipButton == this) |
| 146 | return; |
| 147 | |
| 148 | oldTooltipButton = this; |
| 149 | |
| 150 | controller->showToolTip(m_set, globalPos + QPoint(10, 20)); |
| 151 | |
| 152 | QRect extended(parentWidget()->mapToGlobal(geometry().topLeft()), |
| 153 | parentWidget()->mapToGlobal(geometry().bottomRight())); |
| 154 | controller->tooltip()->setHandleRect(extended); |
| 155 | } |
| 156 | |
| 157 | void WorkingSetToolButton::buttonTriggered() |
| 158 | { |
nothing calls this directly
no test coverage detected