]> cloud.milkyroute.net Git - dolphin.git/commitdiff
use a smaller radius for the tooltip borders to stay consistent with the Oxygen style
authorPeter Penz <peter.penz19@gmail.com>
Wed, 22 Oct 2008 21:04:03 +0000 (21:04 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Wed, 22 Oct 2008 21:04:03 +0000 (21:04 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=874948

src/kformattedballoontipdelegate.cpp

index 5df695ba68b2348395e74e5dd92360e44547830c..141cc27f7b406d5b9b3c1bcb0520cfcaaa760ab6 100644 (file)
@@ -104,7 +104,7 @@ QPainterPath KFormattedBalloonTipDelegate::createPath(const KStyleOptionToolTip
 {
     QPainterPath path;
     QRect rect = option->rect.adjusted(0, 0, -1, -1);
-    qreal radius = 10;
+    const qreal radius = 5;
 
     path.moveTo(rect.left(), rect.top() + radius);
     arc(path, rect.left() + radius, rect.top() + radius, radius, 180, -90);
@@ -114,7 +114,7 @@ QPainterPath KFormattedBalloonTipDelegate::createPath(const KStyleOptionToolTip
     path.closeSubpath();
 
     if (contents)
-        *contents = rect.adjusted(10, 10, -10, -10);
+        *contents = rect.adjusted(radius, radius, -radius, -radius);
 
     return path;
 }