Introduce (private) QStyleAnimation
authorJ-P Nurmi <jpnurmi@digia.com>
Fri, 5 Oct 2012 08:42:10 +0000 (10:42 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 16 Oct 2012 13:29:15 +0000 (15:29 +0200)
commit7501d55ae005cf9a155a6bcbeac468bfde40177d
tree2247bea576be9e45b241e50c1db33532211c7f0d
parente437051ff51d57bcc6937dc23fe6a77bf9897130
Introduce (private) QStyleAnimation

QStyleAnimation handles style animations in a generic fashion by
sending StyleAnimationUpdate events back to the animation target
instead of calling QWidget::update() directly. This decouples style
animations from widgets and makes it possible to run style animations
for QQuickItems (ie. the desktop components).

The next step is to add "QObject* QStyleOption::target" and use that
everywhere instead of the widget pointer passed to various QStyle
methods.

Change-Id: Ib963c54872805fc3f0123ff922f82c9962a68b90
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
20 files changed:
src/widgets/styles/qcleanlooksstyle.cpp
src/widgets/styles/qcleanlooksstyle_p.h
src/widgets/styles/qcommonstyle.cpp
src/widgets/styles/qcommonstyle.h
src/widgets/styles/qcommonstyle_p.h
src/widgets/styles/qgtkstyle.cpp
src/widgets/styles/qmacstyle_mac.mm
src/widgets/styles/qmacstyle_mac_p.h
src/widgets/styles/qplastiquestyle.cpp
src/widgets/styles/qplastiquestyle.h
src/widgets/styles/qstyleanimation.cpp [new file with mode: 0644]
src/widgets/styles/qstyleanimation_p.h [new file with mode: 0644]
src/widgets/styles/qstylesheetstyle.cpp
src/widgets/styles/qwindowsstyle.cpp
src/widgets/styles/qwindowsstyle.h
src/widgets/styles/qwindowsstyle_p.h
src/widgets/styles/qwindowsvistastyle.cpp
src/widgets/styles/qwindowsvistastyle.h
src/widgets/styles/qwindowsvistastyle_p.h
src/widgets/styles/styles.pri