Adapt default QQC2 style definitions for Qt 6
The casing is important, otherwise this results in the error `module "material" is not installed`.
This commit is contained in:
parent
63ffbc4a6f
commit
bbd42e167d
|
@ -9,6 +9,13 @@
|
||||||
#include <QQuickStyle>
|
#include <QQuickStyle>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||||
|
#if defined(PLATFORM_ANDROID)
|
||||||
|
#define QT_UTILITIES_DEFAULT_QQC2_STYLE "Material"
|
||||||
|
#elif defined(PLATFORM_WINDOWS)
|
||||||
|
#define QT_UTILITIES_DEFAULT_QQC2_STYLE "Universal"
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
#define QT_UTILITIES_DEFAULT_QQC2_STYLE "material"
|
#define QT_UTILITIES_DEFAULT_QQC2_STYLE "material"
|
||||||
#elif defined(PLATFORM_WINDOWS)
|
#elif defined(PLATFORM_WINDOWS)
|
||||||
|
@ -16,6 +23,8 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace CppUtilities {
|
namespace CppUtilities {
|
||||||
|
|
||||||
class QT_UTILITIES_EXPORT QtConfigArguments {
|
class QT_UTILITIES_EXPORT QtConfigArguments {
|
||||||
|
|
Loading…
Reference in New Issue