return d->page;
}
-QString QWebFrame::selectedText() const
-{
- return d->frame->selectedText();
-}
-
QList<QWebFrame*> QWebFrame::childFrames() const
{
QList<QWebFrame*> rc;
QString markup() const;
QString innerText() const;
QString renderTreeDump() const;
- QString selectedText() const;
QString title() const;
QString name() const;
webActionTriggered(Paste);
}
+QString QWebPage::selectedText() const
+{
+ return d->page->focusController()->focusedOrMainFrame()->selectedText();
+}
+
QAction *QWebPage::webAction(WebAction action) const
{
if (action == QWebPage::NoWebAction) return 0;
Q_OBJECT
Q_PROPERTY(bool modified READ isModified)
+ Q_PROPERTY(QString selectedText READ selectedText)
public:
enum NavigationRequestResponse {
AcceptNavigationRequest,
quint64 totalBytes() const;
quint64 bytesReceived() const;
+ QString selectedText() const;
+
QAction *webAction(WebAction action) const;
public slots:
*/
void iconLoaded();
- // #### doesn't give you anything without a way to actually get the selection
void selectionChanged();
/**
+2007-11-07 Simon Hausmann <hausmann@kde.org>
+
+ Reviewed by Lars.
+
+ Moved QWebFrame::selectedText() to QWebPage::selectedText().
+
+ The currently selected text is a property of the page as a whole.
+
+ * Api/qwebframe.cpp:
+ * Api/qwebframe.h:
+ * Api/qwebpage.cpp:
+ (QWebPage::selectedText):
+ * Api/qwebpage.h:
+
2007-11-07 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.