[Qt] Remove use of deprecated QInputMethod method

https://bugs.webkit.org/show_bug.cgi?id=95741

Patch by Pekka Vuorela <pvuorela@iki.fi> on 2012-09-04
Reviewed by Simon Hausmann.

Adapt from deprecated QInputMethod::visible() to isVisible().

* UIProcess/qt/QtWebPageEventHandler.cpp:
(WebKit::setInputPanelVisible):
(WebKit::QtWebPageEventHandler::inputPanelVisibleChanged):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 90571290
2012-09-04 Pekka Vuorela <pvuorela@iki.fi>
[Qt] Remove use of deprecated QInputMethod method
https://bugs.webkit.org/show_bug.cgi?id=95741
Reviewed by Simon Hausmann.
Adapt from deprecated QInputMethod::visible() to isVisible().
* UIProcess/qt/QtWebPageEventHandler.cpp:
(WebKit::setInputPanelVisible):
(WebKit::QtWebPageEventHandler::inputPanelVisibleChanged):
2012-09-04 Allan Sandfeld Jensen <allan.jensen@nokia.com>
Allow child-frame content in hit-tests.
......
......@@ -398,7 +398,7 @@ void QtWebPageEventHandler::resetGestureRecognizers()
static void setInputPanelVisible(bool visible)
{
if (qApp->inputMethod()->visible() == visible)
if (qApp->inputMethod()->isVisible() == visible)
return;
qApp->inputMethod()->setVisible(visible);
......@@ -410,7 +410,7 @@ void QtWebPageEventHandler::inputPanelVisibleChanged()
return;
// We only respond to the input panel becoming visible.
if (!m_webView->hasActiveFocus() || !qApp->inputMethod()->visible())
if (!m_webView->hasActiveFocus() || !qApp->inputMethod()->isVisible())
return;
const EditorState& editor = m_webPageProxy->editorState();
......
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