Fix spurious tool tip

BUG: 190316

svn path=/trunk/KDE/kdebase/apps/; revision=970147
This commit is contained in:
Christoph Feck 2009-05-19 17:12:57 +00:00
parent c0cc9361d6
commit ce4ae8ee17

View file

@ -107,6 +107,9 @@ void IconSizeGroupBox::showToolTip(QSlider* slider, int value)
{
const int size = ZoomLevelInfo::iconSizeForZoomLevel(value);
slider->setToolTip(i18ncp("@info:tooltip", "Size: 1 pixel", "Size: %1 pixels", size));
if (!slider->isVisible()) {
return;
}
QPoint global = slider->rect().topLeft();
global.ry() += slider->height() / 2;
QHelpEvent toolTipEvent(QEvent::ToolTip, QPoint(0, 0), slider->mapToGlobal(global));