mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
Fix spurious tool tip
BUG: 190316 svn path=/trunk/KDE/kdebase/apps/; revision=970147
This commit is contained in:
parent
c0cc9361d6
commit
ce4ae8ee17
|
@ -107,6 +107,9 @@ void IconSizeGroupBox::showToolTip(QSlider* slider, int value)
|
||||||
{
|
{
|
||||||
const int size = ZoomLevelInfo::iconSizeForZoomLevel(value);
|
const int size = ZoomLevelInfo::iconSizeForZoomLevel(value);
|
||||||
slider->setToolTip(i18ncp("@info:tooltip", "Size: 1 pixel", "Size: %1 pixels", size));
|
slider->setToolTip(i18ncp("@info:tooltip", "Size: 1 pixel", "Size: %1 pixels", size));
|
||||||
|
if (!slider->isVisible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
QPoint global = slider->rect().topLeft();
|
QPoint global = slider->rect().topLeft();
|
||||||
global.ry() += slider->height() / 2;
|
global.ry() += slider->height() / 2;
|
||||||
QHelpEvent toolTipEvent(QEvent::ToolTip, QPoint(0, 0), slider->mapToGlobal(global));
|
QHelpEvent toolTipEvent(QEvent::ToolTip, QPoint(0, 0), slider->mapToGlobal(global));
|
||||||
|
|
Loading…
Reference in a new issue