From e028a702ff806c126cc6dab1dcf8cb6c92fbcead Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 22 Oct 2008 21:04:03 +0000 Subject: [PATCH] use a smaller radius for the tooltip borders to stay consistent with the Oxygen style svn path=/trunk/KDE/kdebase/apps/; revision=874948 --- src/kformattedballoontipdelegate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kformattedballoontipdelegate.cpp b/src/kformattedballoontipdelegate.cpp index 5df695ba6..141cc27f7 100644 --- a/src/kformattedballoontipdelegate.cpp +++ b/src/kformattedballoontipdelegate.cpp @@ -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; } -- 2.47.3