Qt 6.2 workarounds
This commit is contained in:
parent
f9ca36443e
commit
372751a13d
|
@ -226,8 +226,11 @@ void QskQml::registerTypes()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK( 6, 2, 0 )
|
||||||
|
// how to do this with >= 6.2 TODO ...
|
||||||
QQmlMetaType::registerCustomStringConverter( qMetaTypeId< QskMargins >(),
|
QQmlMetaType::registerCustomStringConverter( qMetaTypeId< QskMargins >(),
|
||||||
[]( const QString& s ) { return QVariant::fromValue( QskMargins( s.toDouble() ) ); } );
|
[]( const QString& s ) { return QVariant::fromValue( QskMargins( s.toDouble() ) ); } );
|
||||||
|
#endif
|
||||||
|
|
||||||
// Support QskSizePolicy in QML user properties
|
// Support QskSizePolicy in QML user properties
|
||||||
QMetaType::registerConverter< QJSValue, QskSizePolicy >(
|
QMetaType::registerConverter< QJSValue, QskSizePolicy >(
|
||||||
|
|
|
@ -16,6 +16,13 @@
|
||||||
|
|
||||||
#if defined( QT_DEBUG )
|
#if defined( QT_DEBUG )
|
||||||
QSK_QT_PRIVATE_BEGIN
|
QSK_QT_PRIVATE_BEGIN
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK( 6, 2, 0 )
|
||||||
|
#ifndef emit
|
||||||
|
// qvariantanimation_p.h needs it
|
||||||
|
#define emit
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <private/qquickpositioners_p.h>
|
#include <private/qquickpositioners_p.h>
|
||||||
QSK_QT_PRIVATE_END
|
QSK_QT_PRIVATE_END
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue