Commit a242e374 authored by hausmann's avatar hausmann

Mark the text direction actions as checkable actions.

Signed-off-by: Nikolas


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 98745f91
......@@ -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)));
......
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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment