Fix build with -no-feature-animation
This amends 8eaf01ef818c1b980e2bbce1e8ddd2de638f5028 Change-Id: I8e30f232b732b0acb0b6c7070ecfa216fabd64da Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> (cherry picked from commit 2b8a604c40814fb25db3e02f9a7776cde9bc1c7e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
43de61139e
commit
eeede2d800
@ -96,6 +96,7 @@ public:
|
|||||||
void startAnimation(QStyleAnimation *animation) const;
|
void startAnimation(QStyleAnimation *animation) const;
|
||||||
void stopAnimation(const QObject *target) const;
|
void stopAnimation(const QObject *target) const;
|
||||||
void removeAnimation(const QObject *target) const;
|
void removeAnimation(const QObject *target) const;
|
||||||
|
#endif
|
||||||
|
|
||||||
QIcon iconFromWindowsTheme(QCommonStyle::StandardPixmap standardIcon,
|
QIcon iconFromWindowsTheme(QCommonStyle::StandardPixmap standardIcon,
|
||||||
const QStyleOption *option,
|
const QStyleOption *option,
|
||||||
@ -113,6 +114,7 @@ public:
|
|||||||
return (option && option->direction == Qt::RightToLeft) ||
|
return (option && option->direction == Qt::RightToLeft) ||
|
||||||
(!option && QGuiApplication::isRightToLeft());
|
(!option && QGuiApplication::isRightToLeft());
|
||||||
}
|
}
|
||||||
|
#if QT_CONFIG(animation)
|
||||||
private:
|
private:
|
||||||
mutable QHash<const QObject*, QStyleAnimation*> animations;
|
mutable QHash<const QObject*, QStyleAnimation*> animations;
|
||||||
#endif // animation
|
#endif // animation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user