Windows QPA plugin: Fix logging.

- Remove frequently occurring messages.
- Rename variable to QT_QPA_VERBOSE.

Change-Id: Id930e1422675355a9657edae6505be87aaec98a5
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
Friedemann Kleint 2012-04-12 15:32:45 +02:00 committed by Qt by Nokia
parent 87548de2ef
commit d318ea2655
3 changed files with 1 additions and 5 deletions

View 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");

View 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);
}

View 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);
}