[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/libs/webkitkde
From: Simon Hausmann <hausmann () kde ! org>
Date: 2007-06-28 14:18:10
Message-ID: 1183040290.826863.8283.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 681305 by hausmann:
WIP
M +16 -1 webkitpart.cpp
M +10 -0 webkitpart.h
--- trunk/playground/libs/webkitkde/webkitpart.cpp #681304:681305
@@ -137,10 +137,25 @@
}
WebKitBrowserExtension::WebKitBrowserExtension(WebKitPart *parent)
- : KParts::BrowserExtension(parent)
+ : KParts::BrowserExtension(parent), part(parent)
{
}
+void WebKitBrowserExtension::cut()
+{
+ part->page()->cut();
+}
+
+void WebKitBrowserExtension::copy()
+{
+ part->page()->copy();
+}
+
+void WebKitBrowserExtension::paste()
+{
+ part->page()->paste();
+}
+
typedef KParts::GenericFactory<WebKitPart> Factory;
Q_EXPORT_PLUGIN(Factory);
--- trunk/playground/libs/webkitkde/webkitpart.h #681304:681305
@@ -45,6 +45,8 @@
QWebPage::NavigationRequestResponse navigationRequested(const QWebNetworkRequest &request);
+ inline QWebPage *page() const { return webPage; }
+
static KAboutData *createAboutData();
protected:
@@ -76,6 +78,14 @@
Q_OBJECT
public:
WebKitBrowserExtension(WebKitPart *parent);
+
+public slots:
+ void cut();
+ void copy();
+ void paste();
+
+private:
+ WebKitPart *part;
};
#endif // WEBKITPART_H
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic