From 7bbde34ee012bbe90c4ce76736c6f71b16e64215 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 23 Feb 2015 17:13:09 +0100 Subject: Fix invocations of static methods of QGuiApplication/QApplication. Change-Id: I99ba58763f6063fa2a6f511adbea0163cce7ea32 Reviewed-by: Konstantin Ritt Reviewed-by: Shawn Rutledge --- src/gui/kernel/qplatforminputcontext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/kernel/qplatforminputcontext.cpp') diff --git a/src/gui/kernel/qplatforminputcontext.cpp b/src/gui/kernel/qplatforminputcontext.cpp index e983ded20b..f9ff1d36d9 100644 --- a/src/gui/kernel/qplatforminputcontext.cpp +++ b/src/gui/kernel/qplatforminputcontext.cpp @@ -163,7 +163,7 @@ QRectF QPlatformInputContext::keyboardRect() const */ void QPlatformInputContext::emitKeyboardRectChanged() { - emit qApp->inputMethod()->keyboardRectangleChanged(); + emit QGuiApplication::inputMethod()->keyboardRectangleChanged(); } /*! @@ -182,7 +182,7 @@ bool QPlatformInputContext::isAnimating() const */ void QPlatformInputContext::emitAnimatingChanged() { - emit qApp->inputMethod()->animatingChanged(); + emit QGuiApplication::inputMethod()->animatingChanged(); } /*! @@ -214,7 +214,7 @@ bool QPlatformInputContext::isInputPanelVisible() const */ void QPlatformInputContext::emitInputPanelVisibleChanged() { - emit qApp->inputMethod()->visibleChanged(); + emit QGuiApplication::inputMethod()->visibleChanged(); } QLocale QPlatformInputContext::locale() const @@ -224,7 +224,7 @@ QLocale QPlatformInputContext::locale() const void QPlatformInputContext::emitLocaleChanged() { - emit qApp->inputMethod()->localeChanged(); + emit QGuiApplication::inputMethod()->localeChanged(); } Qt::LayoutDirection QPlatformInputContext::inputDirection() const @@ -234,7 +234,7 @@ Qt::LayoutDirection QPlatformInputContext::inputDirection() const void QPlatformInputContext::emitInputDirectionChanged(Qt::LayoutDirection newDirection) { - emit qApp->inputMethod()->inputDirectionChanged(newDirection); + emit QGuiApplication::inputMethod()->inputDirectionChanged(newDirection); } /*! -- cgit v1.2.3