Add an argument to pass the link text in the hovering signal
[WebKit-https.git] / WebKit / qt / Api / qwebpage.cpp
index 98fd3951529b7fe3f006c61738fef6f9d52be8e4..ec3dfff46fecf53c9086d64a722b1aecd4fa8c7c 100644 (file)
@@ -127,8 +127,8 @@ void QWebPagePrivate::createMainFrame()
         mainFrame = new QWebFrame(q, &frameData);
         QObject::connect(mainFrame, SIGNAL(titleChanged(const QString&)),
                 q, SIGNAL(titleChanged(const QString&)));
-        QObject::connect(mainFrame, SIGNAL(hoveringOverLink(const QString&, const QString&)),
-                q, SIGNAL(hoveringOverLink(const QString&, const QString&)));
+        QObject::connect(mainFrame, SIGNAL(hoveringOverLink(const QString&, const QString&, const QString&)),
+                q, SIGNAL(hoveringOverLink(const QString&, const QString&, const QString&)));
         
         mainFrame->d->frameView->setFrameGeometry(q->geometry());
 
@@ -860,7 +860,7 @@ void QWebPage::mouseMoveEvent(QMouseEvent *ev)
     WebCore::Element *link = result.URLElement();
     if (link != frame->lastHoverElement) {
         frame->lastHoverElement = link;
-        emit hoveringOverLink(result.absoluteLinkURL().prettyURL(), result.title());
+        emit hoveringOverLink(result.absoluteLinkURL().prettyURL(), result.title(), result.textContent());
     }
 }