summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Iacovitti <aiacovitti@libero.it>2011-08-20 19:39:55 (GMT)
committerAndrea Iacovitti <aiacovitti@libero.it>2011-08-20 19:39:55 (GMT)
commit5bd5c1f781c3ffc6dcd6352429d1e33f8295db10 (patch)
tree9353d8a18ce5525287350aa1bf93046a456e2984
parentfce11f5502922d45d787eef8ca04695454fbd8ba (diff)
Painting the background of LineEdit widget with css borders (!hasFrame()==true)
is already accomplished by khtml, so why redo in paintEvent? BUG: 204826 FIXED-IN: 4.7.1
-rw-r--r--khtml/rendering/render_form.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/khtml/rendering/render_form.cpp b/khtml/rendering/render_form.cpp
index a65a4863..845db1a 100644
--- a/khtml/rendering/render_form.cpp
+++ b/khtml/rendering/render_form.cpp
@@ -967,11 +967,6 @@ void LineEditWidget::clearHistoryActivated()
void LineEditWidget::paintEvent( QPaintEvent *pe )
{
- if (!hasFrame()) {
- QPainter p(this);
- p.fillRect(pe->rect(), palette().brush(QPalette::Base));
- p.end();
- }
KLineEdit::paintEvent( pe );
}
@@ -1050,7 +1045,7 @@ void RenderLineEdit::setStyle(RenderStyle* _style)
widget()->setAlignment(textAlignment());
bool showClearButton = (!shouldDisableNativeBorders() && !_style->hasBackgroundImage());
- static_cast<LineEditWidget*>(widget())->setClearButtonShown( showClearButton );
+ widget()->setClearButtonShown( showClearButton );
if (showClearButton) {
QObjectList children = widget()->children();
foreach (QObject* object, children) {