| 81 | |
| 82 | |
| 83 | void ModuleLightWidget::createTooltip() { |
| 84 | if (!settings::tooltips) |
| 85 | return; |
| 86 | if (internal->tooltip) |
| 87 | return; |
| 88 | // If the LightInfo is null, don't show a tooltip |
| 89 | if (!getLightInfo()) |
| 90 | return; |
| 91 | LightTooltip* tooltip = new LightTooltip; |
| 92 | tooltip->lightWidget = this; |
| 93 | APP->scene->addChild(tooltip); |
| 94 | internal->tooltip = tooltip; |
| 95 | } |
| 96 | |
| 97 | |
| 98 | void ModuleLightWidget::destroyTooltip() { |