Qt 6.8 warnings fixed

This commit is contained in:
Uwe Rathmann 2024-06-25 08:51:43 +02:00
parent a8c1bb5c77
commit 1aaf4ec296
2 changed files with 12 additions and 0 deletions

View File

@ -496,6 +496,16 @@ int QskGraphic::metric( PaintDeviceMetric deviceMetric ) const
value = metric( PdmDevicePixelRatio ) * devicePixelRatioFScale();
break;
}
#if QT_VERSION >= QT_VERSION_CHECK( 6, 8, 0 )
case PdmDevicePixelRatioF_EncodedA:
case PdmDevicePixelRatioF_EncodedB:
{
#if 0
value = QPaintDevice::encodeMetricF( metric, devicePixelRatio() );
#endif
break;
}
#endif
}
return value;

View File

@ -35,6 +35,8 @@ class QSK_EXPORT QskGraphic : public QPaintDevice
Q_PROPERTY( QSizeF defaultSize READ defaultSize )
Q_PROPERTY( quint64 modificationId READ modificationId )
using Inherited = QPaintDevice;
public:
enum RenderHint
{