aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>2012-02-10 17:00:24 +0200
committerQt by Nokia <qt-info@nokia.com>2012-02-13 16:15:40 +0100
commita60e2478caad3356f7cc315b8d4f006147c027b8 (patch)
treeda734d0f4695cc6320b55f48a4c15bd3df7a412d /src
parent1791b29e0be99a27a1d47674d3697f9d03c653e3 (diff)
Qt.application.inputPanel to make deprecation warning only once
Change-Id: I6db04fdbf648e0b91e7ef21f57b6062813ceb6c5 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qdeclarativeapplication.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeapplication.cpp b/src/declarative/qml/qdeclarativeapplication.cpp
index 6964c8fba7..b5ceaf2550 100644
--- a/src/declarative/qml/qdeclarativeapplication.cpp
+++ b/src/declarative/qml/qdeclarativeapplication.cpp
@@ -86,7 +86,11 @@ Qt::LayoutDirection QDeclarativeApplication::layoutDirection() const
QObject *QDeclarativeApplication::inputPanel() const
{
- qWarning() << "Qt.application.inputPanel is deprecated, use Qt.inputMethod instead";
+ static bool warned = false;
+ if (!warned) {
+ qWarning() << "Qt.application.inputPanel is deprecated, use Qt.inputMethod instead";
+ warned = true;
+ }
return qApp ? qApp->inputMethod() : 0;
}