Commit 5ca856f5 authored by Moritz Molch's avatar Moritz Molch

Popup Palette: Add tooltips to the presets

REVIEW:123002
parent 93e18df6
......@@ -394,6 +394,7 @@ void KisPopupPalette::mouseMoveEvent(QMouseEvent* event)
QPainterPath pathBrush(drawDonutPathFull(width() / 2, height() / 2, brushInnerRadius, brushOuterRadius));
QPainterPath pathColor(drawDonutPathFull(width() / 2, height() / 2, colorInnerRadius, colorOuterRadius));
setToolTip("");
setHoveredPreset(-1);
setHoveredColor(-1);
......@@ -402,6 +403,7 @@ void KisPopupPalette::mouseMoveEvent(QMouseEvent* event)
int pos = calculatePresetIndex(point, m_resourceManager->numFavoritePresets());
if (pos >= 0 && pos < m_resourceManager->numFavoritePresets()) {
setToolTip(m_resourceManager->favoritePresetList().at(pos).data()->name());
setHoveredPreset(pos);
}
} else if (pathColor.contains(point)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment