void loadDone(bool ok);
void provisionalLoad();
void titleChanged(const QString &title);
- void hoveringOverLink(const QString &link, const QString &title);
+ void hoveringOverLink(const QString &link, const QString &title, const QString &textContent);
private:
friend class QWebPage;
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());
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());
}
}
/**
* Signal is emitted when the mouse is hovering over a link.
* The first parameter is the link url, the second is the link title
- * if any. Method is emitter with both empty parameters when the mouse
- * isn't hovering over any link element.
+ * if any, and third is the text content. Method is emitter with both
+ * empty parameters when the mouse isn't hovering over any link element.
*/
- void hoveringOverLink(const QString &link, const QString &title);
+ void hoveringOverLink(const QString &link, const QString &title, const QString &textContent);
/**
* Signal is emitted when the statusbar text is changed by the page.
*/
+2007-11-20 George Staikos <staikos@kde.org>
+
+ Reviewed by Simon Hausmann <hausmann@kde.org>.
+
+ Add an argument to pass the link text in the hovering signal
+
+
+ * Api/qwebframe.h:
+ * Api/qwebpage.cpp:
+ (QWebPagePrivate::createMainFrame):
+ (QWebPage::mouseMoveEvent):
+ * Api/qwebpage.h:
+
2007-11-20 Adam Treat <treat@kde.org>
Reviewed by Simon and George.