Fix compilation with QT_NO_DEBUG_OUTPUT defined
Change-Id: If96e93c08240e0f626f8e465993b2c38b2cad832 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
384eec86e5
commit
a48d9b52c3
@ -59,14 +59,16 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifndef QT_NO_DEBUG
|
||||
#if !defined(QT_NO_DEBUG) && !defined(QT_NO_DEBUG_OUTPUT)
|
||||
bool debug_accessibility();
|
||||
# define accessibleDebug !debug_accessibility() ? (void)0 : qDebug
|
||||
#else
|
||||
# define accessibleDebug
|
||||
#endif
|
||||
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
#define DEBUG_SHOW_ATCLIENT_COMMANDS
|
||||
#endif
|
||||
#if defined(DEBUG_SHOW_ATCLIENT_COMMANDS)
|
||||
void accessibleDebugClientCalls_helper(const char* funcName, const QAccessibleInterface *iface);
|
||||
# define accessibleDebugClientCalls(iface) accessibleDebugClientCalls_helper(Q_FUNC_INFO, iface)
|
||||
|
@ -106,6 +106,7 @@ void QWindowsBackingStore::flush(QWindow *window, const QRegion ®ion,
|
||||
void QWindowsBackingStore::resize(const QSize &size, const QRegion ®ion)
|
||||
{
|
||||
if (m_image.isNull() || m_image->image().size() != size) {
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
if (QWindowsContext::verboseBackingStore) {
|
||||
QDebug nsp = qDebug().nospace();
|
||||
nsp << __FUNCTION__ << ' ' << rasterWindow()->window()
|
||||
@ -113,6 +114,7 @@ void QWindowsBackingStore::resize(const QSize &size, const QRegion ®ion)
|
||||
if (!m_image.isNull())
|
||||
nsp << " from: " << m_image->image().size();
|
||||
}
|
||||
#endif
|
||||
m_image.reset(new QWindowsNativeImage(size.width(), size.height(),
|
||||
QWindowsNativeImage::systemFormat()));
|
||||
}
|
||||
|
@ -158,6 +158,7 @@ QVariant QWindowsInternalMimeData::retrieveData_sys(const QString &mimeType,
|
||||
if (const QWindowsMime *converter = mc.converterToMime(mimeType, pDataObj))
|
||||
result = converter->convertToMime(mimeType, pDataObj, type);
|
||||
releaseDataObject(pDataObj);
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
if (QWindowsContext::verboseOLE) {
|
||||
QDebug nospace = qDebug().nospace();
|
||||
nospace << __FUNCTION__ << ' ' << mimeType << ' ' << type
|
||||
@ -165,6 +166,7 @@ QVariant QWindowsInternalMimeData::retrieveData_sys(const QString &mimeType,
|
||||
if (result.type() != QVariant::ByteArray)
|
||||
nospace << ' ' << result;
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -536,6 +536,7 @@ static bool addFontToDatabase(QString familyName, const QString &scriptName,
|
||||
const QFont::Weight weight = weightFromInteger(tm->tmWeight);
|
||||
const QFont::Stretch stretch = QFont::Unstretched;
|
||||
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
if (QWindowsContext::verboseFonts > 2) {
|
||||
QDebug nospace = qDebug().nospace();
|
||||
nospace << __FUNCTION__ << familyName << scriptName
|
||||
@ -550,6 +551,7 @@ static bool addFontToDatabase(QString familyName, const QString &scriptName,
|
||||
<< " Style=" << style << " Weight=" << weight
|
||||
<< " stretch=" << stretch;
|
||||
}
|
||||
#endif
|
||||
|
||||
QString englishName;
|
||||
if (ttf && localizedName(familyName))
|
||||
|
@ -144,6 +144,7 @@ static bool addFontToDatabase(QString familyName, const QString &scriptName,
|
||||
const QFont::Weight weight = weightFromInteger(tm->tmWeight);
|
||||
const QFont::Stretch stretch = QFont::Unstretched;
|
||||
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
if (QWindowsContext::verboseFonts > 2) {
|
||||
QDebug nospace = qDebug().nospace();
|
||||
nospace << __FUNCTION__ << faceName << fullName << scriptName
|
||||
@ -158,6 +159,7 @@ static bool addFontToDatabase(QString familyName, const QString &scriptName,
|
||||
<< " Style=" << style << " Weight=" << weight
|
||||
<< " stretch=" << stretch;
|
||||
}
|
||||
#endif
|
||||
|
||||
QString englishName;
|
||||
if (ttf && localizedName(faceName))
|
||||
|
@ -470,6 +470,7 @@ static int choosePixelFormat(HDC hdc,
|
||||
pixelFormat = 0;
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
if (QWindowsContext::verboseGL) {
|
||||
QDebug nsp = qDebug().nospace();
|
||||
nsp << __FUNCTION__;
|
||||
@ -481,6 +482,7 @@ static int choosePixelFormat(HDC hdc,
|
||||
nsp << noshowbase << dec << "\n obtained px #" << pixelFormat
|
||||
<< " of " << numFormats << "\n " << *obtainedPfd;
|
||||
} // Debug
|
||||
#endif
|
||||
|
||||
return pixelFormat;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user