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);