From 2636ba3c03560d9ba6fa0c6c81205ab489826cc4 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 6 Nov 2009 20:39:00 +0000 Subject: [PATCH] use a vertical gradient like in KDE 4.3 svn path=/trunk/KDE/kdebase/apps/; revision=1045823 --- src/tooltips/ktooltipwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tooltips/ktooltipwindow.cpp b/src/tooltips/ktooltipwindow.cpp index 9a1cb45ebd..7c9e0b2f00 100644 --- a/src/tooltips/ktooltipwindow.cpp +++ b/src/tooltips/ktooltipwindow.cpp @@ -65,7 +65,7 @@ void KToolTipWindow::paintEvent(QPaintEvent* event) fromColor.setAlpha(220); } - QLinearGradient gradient(QPointF(0.0, 0.0), QPointF(width(), height())); + QLinearGradient gradient(QPointF(0.0, 0.0), QPointF(0.0, height())); gradient.setColorAt(0.0, fromColor); gradient.setColorAt(1.0, toColor); painter.setPen(Qt::NoPen);