Diaglib: Fix compilation with Qt 5.3.
QDebug does not have noquote() in Qt 5.3. Task-number: QTBUG-44021 Change-Id: If35b926d6b1e5bb9ad3534357630533dfcecd076 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
parent
560c8ac098
commit
cebd6d59cb
@ -166,7 +166,7 @@ static void dumpNativeWindows(const WIdVector& wins)
|
||||
dc.stream = QSharedPointer<QTextStream>(new QTextStream(&s));
|
||||
foreach (WId win, wins)
|
||||
dumpNativeWindowRecursion(reinterpret_cast<HWND>(win), &dc);
|
||||
#if QT_VERSION > 0x050000
|
||||
#if QT_VERSION >= 0x050400
|
||||
qDebug().noquote() << s;
|
||||
#else
|
||||
qDebug("%s", qPrintable(s));
|
||||
|
@ -84,7 +84,7 @@ void dumpAllWidgets(FormatWindowOptions options)
|
||||
str << "### QWidgets:\n";
|
||||
foreach (QWidget *tw, QApplication::topLevelWidgets())
|
||||
dumpWidgetRecursion(str, tw, options);
|
||||
#if QT_VERSION > 0x050000
|
||||
#if QT_VERSION >= 0x050400
|
||||
qDebug().noquote() << d;
|
||||
#else
|
||||
qDebug("%s", qPrintable(d));
|
||||
|
@ -157,7 +157,11 @@ void dumpAllWindows(FormatWindowOptions options)
|
||||
str << "### QWindows:\n";
|
||||
foreach (QWindow *w, QGuiApplication::topLevelWindows())
|
||||
dumpWindowRecursion(str, w, options);
|
||||
#if QT_VERSION >= 0x050400
|
||||
qDebug().noquote() << d;
|
||||
#else
|
||||
qDebug() << d;
|
||||
#endif
|
||||
}
|
||||
|
||||
#else // Qt 5
|
||||
|
Loading…
x
Reference in New Issue
Block a user