Fix build with -no-feature-highdpiscaling
Fixes: QTBUG-107054 Change-Id: Ie9fd57e8a97c94365ec9e170088af0a82c5e7ba3 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>bb10
parent
3be1509013
commit
91e7925dde
|
|
@ -750,7 +750,20 @@ QHighDpiScaling::ScaleAndOrigin QHighDpiScaling::scaleAndOrigin(const QWindow *w
|
|||
return scaleAndOrigin(targetScreen, position);
|
||||
}
|
||||
|
||||
#else
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
QDebug operator<<(QDebug debug, const QHighDpiScaling::ScreenFactor &factor)
|
||||
{
|
||||
const QDebugStateSaver saver(debug);
|
||||
debug.nospace();
|
||||
if (!factor.name.isEmpty())
|
||||
debug << factor.name << "=";
|
||||
debug << factor.factor;
|
||||
return debug;
|
||||
}
|
||||
#endif
|
||||
|
||||
#else // QT_NO_HIGHDPISCALING
|
||||
|
||||
QHighDpiScaling::ScaleAndOrigin QHighDpiScaling::scaleAndOrigin(const QPlatformScreen *, QPoint *)
|
||||
{
|
||||
return { qreal(1), QPoint() };
|
||||
|
|
@ -765,19 +778,8 @@ QHighDpiScaling::ScaleAndOrigin QHighDpiScaling::scaleAndOrigin(const QWindow *,
|
|||
{
|
||||
return { qreal(1), QPoint() };
|
||||
}
|
||||
#endif //QT_NO_HIGHDPISCALING
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
QDebug operator<<(QDebug debug, const QHighDpiScaling::ScreenFactor &factor)
|
||||
{
|
||||
const QDebugStateSaver saver(debug);
|
||||
debug.nospace();
|
||||
if (!factor.name.isEmpty())
|
||||
debug << factor.name << "=";
|
||||
debug << factor.factor;
|
||||
return debug;
|
||||
}
|
||||
#endif
|
||||
#endif // QT_NO_HIGHDPISCALING
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue