Remove funny highlight for the find tool bar.

Basically for all widgets that don't have navigationWidgetHeight
it is removed, because then the proportions are wrong.

Reviewed-by: Erik Verbruggen
This commit is contained in:
con
2009-09-21 10:57:07 +02:00
parent d499e95e1b
commit de73a6d6dd

View File

@@ -176,10 +176,11 @@ void StyleHelper::horizontalGradient(QPainter *painter, const QRect &spanRect, c
QColor base = StyleHelper::baseColor();
QLinearGradient grad(rect.topLeft(), rect.bottomLeft());
grad.setColorAt(0, highlightColor().lighter(120));
grad.setColorAt(0.4, highlightColor());
grad.setColorAt(0.401, base);
if (rect.height() == navigationWidgetHeight()) {
grad.setColorAt(0.4, highlightColor());
grad.setColorAt(0.401, base);
}
grad.setColorAt(1, shadowColor());
p->fillRect(rect, grad);