Windows QPA plugin: Fix logging.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Thu, 12 Apr 2012 13:32:45 +0000 (15:32 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Apr 2012 10:59:17 +0000 (12:59 +0200)
- Remove frequently occurring messages.
- Rename variable to QT_QPA_VERBOSE.

Change-Id: Id930e1422675355a9657edae6505be87aaec98a5
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/windows/qwindowscontext.cpp
src/plugins/platforms/windows/qwindowscursor.cpp
src/plugins/platforms/windows/qwindowsintegration.cpp

index 0075b87..c5b1dcc 100644 (file)
@@ -277,7 +277,7 @@ QWindowsContext::QWindowsContext() :
 #    pragma warning( disable : 4996 )
 #endif
     m_instance = this;
-    if (const char *v = getenv("QT_LIGHTHOUSE_WINDOWS_VERBOSE")) {
+    if (const char *v = getenv("QT_QPA_VERBOSE")) {
         QWindowsContext::verboseIntegration = componentVerbose(v, "integration");
         QWindowsContext::verboseWindows = componentVerbose(v, "windows");
         QWindowsContext::verboseEvents = componentVerbose(v, "events");
index 337ba9a..ebcf117 100644 (file)
@@ -369,8 +369,6 @@ QPoint QWindowsCursor::mousePosition()
 {
     POINT p;
     GetCursorPos(&p);
-    if (QWindowsContext::verboseWindows)
-        qDebug("%s %ld,%ld", __FUNCTION__, p.x, p.y);
     return QPoint(p.x, p.y);
 }
 
index 47d6a2f..6da8932 100644 (file)
@@ -228,8 +228,6 @@ bool QWindowsIntegration::hasCapability(QPlatformIntegration::Capability cap) co
 
 QPlatformPixmap *QWindowsIntegration::createPlatformPixmap(QPlatformPixmap::PixelType type) const
 {
-    if (QWindowsContext::verboseIntegration)
-        qDebug() << __FUNCTION__ << type;
     return new QRasterPlatformPixmap(type);
 }