Mark the text direction actions as checkable actions.
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Nov 2007 22:24:17 +0000 (22:24 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Nov 2007 22:24:17 +0000 (22:24 +0000)
Signed-off-by: Nikolas
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27670 268f45cc-cd09-0410-ab3c-d52691b4dbfc

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

index 40cae0c87d0d8c2e84a84a259393e054fb39e1d0..23834d3d9de7422f400c5fd0d276d232d1fb6922 100644 (file)
@@ -605,6 +605,7 @@ QAction *QWebPage::action(WebAction action) const
         return d->actions[action];
 
     QString text;
+    bool checkable = false;
 
     switch (action) {
         case OpenLink:
@@ -700,9 +701,11 @@ QAction *QWebPage::action(WebAction action) const
             break;
         case SetTextDirectionLeftToRight:
             text = contextMenuItemTagLeftToRight();
+            checkable = true;
             break;
         case SetTextDirectionRightToLeft:
             text = contextMenuItemTagRightToLeft();
+            checkable = true;
             break;
 
         case NoWebAction:
@@ -715,6 +718,7 @@ QAction *QWebPage::action(WebAction action) const
     QAction *a = new QAction(d->q);
     a->setText(text);
     a->setData(action);
+    a->setCheckable(checkable);
 
     connect(a, SIGNAL(triggered(bool)),
             this, SLOT(_q_webActionTriggered(bool)));
index 8a1e40237ece1a26b45124a2475173a90c5b4a65..eab72f13d2fb4013f47b6d629dd4ba94fabbeec4 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-10  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Nikolas.
+
+        Mark the text direction actions as checkable actions.
+        
+
+        * Api/qwebpage.cpp:
+        (QWebPage::action):
+
 2007-11-09  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Holger.