~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/dolphin/src/settings/iconsizegroupbox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve Stalcup
  • Date: 2009-06-03 23:42:46 UTC
  • mto: This revision was merged to the branch mainline in revision 242.
  • Revision ID: james.westby@ubuntu.com-20090603234246-lt9inobn80tnv1o3
Tags: upstream-4.2.90
ImportĀ upstreamĀ versionĀ 4.2.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
{
108
108
    const int size = ZoomLevelInfo::iconSizeForZoomLevel(value);
109
109
    slider->setToolTip(i18ncp("@info:tooltip", "Size: 1 pixel", "Size: %1 pixels", size));
 
110
    if (!slider->isVisible()) {
 
111
        return;
 
112
    }
110
113
    QPoint global = slider->rect().topLeft();
111
114
    global.ry() += slider->height() / 2;
112
115
    QHelpEvent toolTipEvent(QEvent::ToolTip, QPoint(0, 0), slider->mapToGlobal(global));