[Kde-bindings] KDE/kdelibs/kdewebkit

Dawit Alemayehu adawit at kde.org
Tue May 18 23:59:52 UTC 2010


SVN commit 1128335 by adawit:

- Added a signal that is emitted when a fill form request is completed much like
  what we do for save form data requests.

CCMAIL:kde-bindings at kde.org


 M  +3 -0      kwebwallet.cpp  


--- trunk/KDE/kdelibs/kdewebkit/kwebwallet.cpp #1128334:1128335
@@ -417,6 +417,7 @@
     QWebFrame *frame = d->pendingFillRequests.value(url).frame;
     if (frame) {
         QWebElement formElement;
+        bool filledForm = false;
         QListIterator<WebForm> formIt (forms);
         while (formIt.hasNext()) {
             const WebForm form = formIt.next();
@@ -438,11 +439,13 @@
                         if (formElement.hasAttribute(QL1S("placeholder")))
                             formElement.setAttribute(QL1S("placeholder"), QL1S(""));
                         formElement.setAttribute(QL1S("value"), field.second);
+                        filledForm = true;
                         //kDebug(800) << "Filled out input name=" << field.first;
                     }
                 }
             }
         }
+        emit fillFormRequestCompleted(filledForm);
     }
 }
 



More information about the Kde-bindings mailing list