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:
parent
87548de2ef
commit
d318ea2655
@ -277,7 +277,7 @@ QWindowsContext::QWindowsContext() :
|
|||||||
# pragma warning( disable : 4996 )
|
# pragma warning( disable : 4996 )
|
||||||
#endif
|
#endif
|
||||||
m_instance = this;
|
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::verboseIntegration = componentVerbose(v, "integration");
|
||||||
QWindowsContext::verboseWindows = componentVerbose(v, "windows");
|
QWindowsContext::verboseWindows = componentVerbose(v, "windows");
|
||||||
QWindowsContext::verboseEvents = componentVerbose(v, "events");
|
QWindowsContext::verboseEvents = componentVerbose(v, "events");
|
||||||
|
@ -369,8 +369,6 @@ QPoint QWindowsCursor::mousePosition()
|
|||||||
{
|
{
|
||||||
POINT p;
|
POINT p;
|
||||||
GetCursorPos(&p);
|
GetCursorPos(&p);
|
||||||
if (QWindowsContext::verboseWindows)
|
|
||||||
qDebug("%s %ld,%ld", __FUNCTION__, p.x, p.y);
|
|
||||||
return QPoint(p.x, p.y);
|
return QPoint(p.x, p.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,8 +228,6 @@ bool QWindowsIntegration::hasCapability(QPlatformIntegration::Capability cap) co
|
|||||||
|
|
||||||
QPlatformPixmap *QWindowsIntegration::createPlatformPixmap(QPlatformPixmap::PixelType type) const
|
QPlatformPixmap *QWindowsIntegration::createPlatformPixmap(QPlatformPixmap::PixelType type) const
|
||||||
{
|
{
|
||||||
if (QWindowsContext::verboseIntegration)
|
|
||||||
qDebug() << __FUNCTION__ << type;
|
|
||||||
return new QRasterPlatformPixmap(type);
|
return new QRasterPlatformPixmap(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user