diff options
| author | Mitch Curtis <mitch.curtis@qt.io> | 2021-08-13 11:07:57 +0200 |
|---|---|---|
| committer | Mitch Curtis <mitch.curtis@qt.io> | 2021-08-26 07:02:40 +0200 |
| commit | 2ffd1ffb0e0ee6028849a279d36fe3f68fed1e99 (patch) | |
| tree | ea9ca9eb4ba809f8ea557a8e75d67b5a43b71ae5 /src/quicknativestyle/qstyle/qquickstylehelper.cpp | |
| parent | b0193908258f315a5736edcbc2a034d3194d42c9 (diff) | |
Fix build without accessibility
Amends 4b1acb290dc8869d0d2d1250dc1ed415d6b6e202 and friends.
Pick-to: 6.2
Change-Id: Ida44dd5e1865673878601da97685fd1aa19c40c3
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/quicknativestyle/qstyle/qquickstylehelper.cpp')
| -rw-r--r-- | src/quicknativestyle/qstyle/qquickstylehelper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quicknativestyle/qstyle/qquickstylehelper.cpp b/src/quicknativestyle/qstyle/qquickstylehelper.cpp index ebc82864f9..fdc60b6468 100644 --- a/src/quicknativestyle/qstyle/qquickstylehelper.cpp +++ b/src/quicknativestyle/qstyle/qquickstylehelper.cpp @@ -114,6 +114,7 @@ qreal dpiScaled(qreal value, const QStyleOption *option) return dpiScaled(value, dpi(option)); } +#if QT_CONFIG(accessibility) bool isInstanceOf(QObject *obj, QAccessible::Role role) { bool match = false; @@ -134,7 +135,7 @@ bool hasAncestor(QObject *obj, QAccessible::Role role) } return found; } - +#endif int calcBigLineSize(int radius) { |
