use a vertical gradient like in KDE 4.3

svn path=/trunk/KDE/kdebase/apps/; revision=1045823
This commit is contained in:
Peter Penz 2009-11-06 20:39:00 +00:00
parent 18a2989794
commit 2636ba3c03

View file

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