Removed a bunch of slots/functions that are now available through the new actions...
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 14:31:26 +0000 (14:31 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 14:31:26 +0000 (14:31 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27555 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/qt/Api/qwebpage.cpp
WebKit/qt/Api/qwebpage.h
WebKit/qt/ChangeLog

index c3b57bb0038ae5eaddb62817d85d2f917654cee1..77a7a05f0d0ceb16028e11625dda1d1b403fb192 100644 (file)
@@ -358,21 +358,6 @@ QWebPageHistory *QWebPage::history() const
     return &d->history;
 }
 
     return &d->history;
 }
 
-void QWebPage::goBack()
-{
-    webActionTriggered(GoBack);
-}
-
-void QWebPage::goForward()
-{
-    webActionTriggered(GoForward);
-}
-
-void QWebPage::goToHistoryItem(const QWebHistoryItem &item)
-{
-    d->page->goToItem(item.d->item, FrameLoadTypeIndexedBackForward);
-}
-
 void QWebPage::javaScriptConsoleMessage(const QString& message, unsigned int lineNumber, const QString& sourceID)
 {
 }
 void QWebPage::javaScriptConsoleMessage(const QString& message, unsigned int lineNumber, const QString& sourceID)
 {
 }
@@ -598,36 +583,6 @@ void QWebPage::setWindowGeometry(const QRect& geom)
     Q_UNUSED(geom)
 }
 
     Q_UNUSED(geom)
 }
 
-bool QWebPage::canCut() const
-{
-    return d->page->focusController()->focusedOrMainFrame()->editor()->canCut();
-}
-
-bool QWebPage::canCopy() const
-{
-    return d->page->focusController()->focusedOrMainFrame()->editor()->canCopy();
-}
-
-bool QWebPage::canPaste() const
-{
-    return d->page->focusController()->focusedOrMainFrame()->editor()->canPaste();
-}
-
-void QWebPage::cut()
-{
-    webActionTriggered(Cut);
-}
-
-void QWebPage::copy()
-{
-    webActionTriggered(Copy);
-}
-
-void QWebPage::paste()
-{
-    webActionTriggered(Paste);
-}
-
 QString QWebPage::selectedText() const
 {
     return d->page->focusController()->focusedOrMainFrame()->selectedText();
 QString QWebPage::selectedText() const
 {
     return d->page->focusController()->focusedOrMainFrame()->selectedText();
index c4f349d79886ec5eda7ed4cf81be478ffef692df..9059ffa669616fa00eb0b9020096521384924b99 100644 (file)
@@ -156,11 +156,6 @@ public:
     QNetworkProxy networkProxy() const;
 #endif
 
     QNetworkProxy networkProxy() const;
 #endif
 
-    // #### remove after adding editor actions
-    bool canCut() const;
-    bool canCopy() const;
-    bool canPaste() const;
-
     quint64 totalBytes() const;
     quint64 bytesReceived() const;
 
     quint64 totalBytes() const;
     quint64 bytesReceived() const;
 
@@ -174,18 +169,9 @@ public slots:
      */
     void stop();
 
      */
     void stop();
 
-    // #### should these be actions?
-    void goBack();
-    void goForward();
-    void goToHistoryItem(const QWebHistoryItem &item);
-
     // ### should be a signal: void geometryChangeRequest(const QRect &geom);
     virtual void setWindowGeometry(const QRect& geom);
 
     // ### should be a signal: void geometryChangeRequest(const QRect &geom);
     virtual void setWindowGeometry(const QRect& geom);
 
-    void cut();
-    void copy();
-    void paste();
-
 signals:
     /**
      * Signal is emitted when load is started on one of the child
 signals:
     /**
      * Signal is emitted when load is started on one of the child
index f5e096c66a1f4d381f7f57098e864f1d95a94c4c..4bf51425f48056338ab3a08b658e06c389f1d14f 100644 (file)
@@ -1,3 +1,12 @@
+2007-11-07  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Lars.
+
+        Removed a bunch of slots/functions that are now available through the new actions API.
+
+        * Api/qwebpage.cpp:
+        * Api/qwebpage.h:
+
 2007-11-07  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.
 2007-11-07  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.