[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.4/kdelibs/khtml/rendering
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2010-01-28 6:02:19
Message-ID: 1264658539.429230.26844.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1081297 by ggarand:

oops, nearly missed that RC3 tagging announce. Backport some more...
----------
automatically merged revision 1079858:
fix event cycle happening on google-custom-search linedit widgets

 M  +8 -1      render_form.cpp  


--- branches/KDE/4.4/kdelibs/khtml/rendering/render_form.cpp #1081296:1081297
@@ -999,8 +999,15 @@
     if (showClearButton) {
         QList<QWidget *> wl = qFindChildren<QWidget *>(m_widget, QString());
         foreach (QWidget* w, wl)
-            if (!w->isWindow())
+            if (!w->isWindow()) {
+                // this duplicates KHTMLView's handleWidget but this widget 
+                // is created on demand, so it might not be here at ChildPolished time
                 w->setObjectName("KHTMLLineEditButton");
+                w->installEventFilter(view());
+                w->setAttribute(Qt::WA_NoSystemBackground);
+                w->setAttribute(Qt::WA_WState_InPaintEvent);
+                w->setAttribute(Qt::WA_OpaquePaintEvent);
+            }
     }
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic