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

List:       kde-commits
Subject:    KDE/kdelibs/khtml/rendering
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2010-02-12 4:21:12
Message-ID: 1265948472.272874.11496.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1088986 by ggarand:

workaround the cursor not blinking in QLineEdit in Qt 4.6.1.

the event propagator should actually be fixed to go through event()
in all cases, but this is going to take some significant testing/cleanup,
and figuring out if this can work fine with the non-redirected code path.

So here is the minimal, backportable fix in the meantime.

 M  +4 -1      render_replaced.cpp  


--- trunk/KDE/kdelibs/khtml/rendering/render_replaced.cpp #1088985:1088986
@@ -880,7 +880,10 @@
         keyPressEvent(static_cast<QKeyEvent *>(e));
         break;
     case QEvent::KeyRelease:
-        keyReleaseEvent(static_cast<QKeyEvent *>(e));
+        if (qobject_cast<QLineEdit*>(this))
+            event(e);
+        else
+            keyReleaseEvent(static_cast<QKeyEvent *>(e));
         break;
     case QEvent::FocusIn:
         focusInEvent(static_cast<QFocusEvent *>(e));
[prev in list] [next in list] [prev in thread] [next in thread] 

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