diff options
| author | Christoph Feck <[email protected]> | 2009-05-19 17:12:57 +0000 |
|---|---|---|
| committer | Christoph Feck <[email protected]> | 2009-05-19 17:12:57 +0000 |
| commit | ce4ae8ee17a8b00fffd0b365492d46cfe6608331 (patch) | |
| tree | 8b76070aefa21e3488be574e9f11bd0472916a92 /src | |
| parent | c0cc9361d6fe9e17e58e2466fc7101e542dd2470 (diff) | |
Fix spurious tool tip
BUG: 190316
svn path=/trunk/KDE/kdebase/apps/; revision=970147
Diffstat (limited to 'src')
| -rw-r--r-- | src/settings/iconsizegroupbox.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings/iconsizegroupbox.cpp b/src/settings/iconsizegroupbox.cpp index 860638cc3..d8e0e889a 100644 --- a/src/settings/iconsizegroupbox.cpp +++ b/src/settings/iconsizegroupbox.cpp @@ -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)); |
